FEATURE: correct muted category implementation

- Don't change tracking state on muted categories
- Exclude muted sub categories from parent
This commit is contained in:
Sam
2014-06-18 11:23:31 +10:00
parent b0f8b104d2
commit dc0266cc22
5 changed files with 36 additions and 34 deletions

View File

@@ -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)