Fix #1608: Show wiki page of alias consequent for Related Tags

Make related tags apply aliases before fetching tags from the wiki page.
This commit is contained in:
evazion
2017-06-12 19:50:27 -05:00
parent 04ef575704
commit c06ae5277e
3 changed files with 21 additions and 3 deletions

View File

@@ -250,7 +250,7 @@ class WikiPage < ActiveRecord::Base
else
match
end
end.map {|x| x.mb_chars.downcase.tr(" ", "_").to_s}
end.map {|x| x.mb_chars.downcase.tr(" ", "_").to_s}.uniq
end
def visible?