mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: correct muted category implementation
- Don't change tracking state on muted categories - Exclude muted sub categories from parent
This commit is contained in:
@@ -60,15 +60,6 @@ class CategoryUser < ActiveRecord::Base
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def self.auto_mute_new_topic(topic)
|
||||
apply_default_to_topic(
|
||||
topic,
|
||||
TopicUser.notification_levels[:muted],
|
||||
TopicUser.notification_reasons[:auto_mute_category]
|
||||
)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def self.apply_default_to_topic(topic, level, reason)
|
||||
|
||||
Reference in New Issue
Block a user