mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: automatically in/decrement topic_tags.pm_topic_count
This commit is contained in:
@@ -181,9 +181,7 @@ module DiscourseTagging
|
||||
end
|
||||
|
||||
def self.hidden_tag_names(guardian = nil)
|
||||
return [] if guardian&.is_staff?
|
||||
|
||||
hidden_tags_query.pluck(:name)
|
||||
guardian&.is_staff? ? [] : hidden_tags_query.pluck(:name)
|
||||
end
|
||||
|
||||
def self.hidden_tags_query
|
||||
|
||||
Reference in New Issue
Block a user