From 7bbe4e8ac199784b8d62995ebf1a812172ad73cc Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 5 Dec 2018 11:53:26 -0600 Subject: [PATCH] moebooru: don't exclude artists from translated tags (#3969). --- app/logical/sources/strategies/moebooru.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/logical/sources/strategies/moebooru.rb b/app/logical/sources/strategies/moebooru.rb index 5783aa3aa..028629b5b 100644 --- a/app/logical/sources/strategies/moebooru.rb +++ b/app/logical/sources/strategies/moebooru.rb @@ -81,6 +81,11 @@ module Sources end end + # XXX the base strategy excludes artist tags from the translated tags; we don't want that for moebooru. + def translated_tags + tags.map(&:first).flat_map(&method(:translate_tag)).uniq.sort + end + def headers { "Referer" => "http://#{site_name}" } end