wiki pages: convert other_names to array (#3987).

This commit is contained in:
evazion
2018-11-13 19:18:11 -06:00
parent b660aeefd7
commit 308a5021b4
9 changed files with 55 additions and 50 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ module Sources
def translate_tag(untranslated_tag)
return [] if untranslated_tag.blank?
translated_tag_names = WikiPage.active.other_names_equal(untranslated_tag).uniq.pluck(:title)
translated_tag_names = WikiPage.active.other_names_include(untranslated_tag).uniq.pluck(:title)
translated_tag_names = TagAlias.to_aliased(translated_tag_names)
translated_tags = Tag.where(name: translated_tag_names)