mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: default_tags_muted site setting won't have tag ids.
Instead it only have list of tag names separated by comma.
89fcb75af2
This commit is contained in:
@@ -917,7 +917,8 @@ class TopicQuery
|
||||
if user.present?
|
||||
muted_tag_ids = TagUser.lookup(user, :muted).pluck(:tag_id)
|
||||
else
|
||||
muted_tag_ids = SiteSetting.default_tags_muted.split("|").map(&:to_i)
|
||||
muted_tag_names = SiteSetting.default_tags_muted.split("|")
|
||||
muted_tag_ids = Tag.where(name: muted_tag_names).pluck(:id)
|
||||
end
|
||||
|
||||
if muted_tag_ids.blank?
|
||||
|
||||
Reference in New Issue
Block a user