Fix #4193: Wiki tags for related tags are no longer in wiki order.
This commit is contained in:
@@ -206,8 +206,9 @@ class WikiPage < ApplicationRecord
|
||||
end
|
||||
|
||||
def tags
|
||||
titles = DText.parse_wiki_titles(body)
|
||||
Tag.nonempty.where(name: titles.uniq).pluck(:name)
|
||||
titles = DText.parse_wiki_titles(body).uniq
|
||||
tags = Tag.nonempty.where(name: titles).pluck(:name)
|
||||
titles & tags
|
||||
end
|
||||
|
||||
def visible?
|
||||
|
||||
Reference in New Issue
Block a user