FEATURE: Basic backend support for muted and watched categories

This commit is contained in:
Sam
2014-01-02 12:00:08 +11:00
parent 126433cf65
commit b482b280d6
6 changed files with 106 additions and 1 deletions

View File

@ -22,17 +22,23 @@ class TopicCreator
save_topic
watch_topic
auto_mute_topic
@topic
end
private
def auto_mute_topic
CategoryUser.auto_mute_new_topic(@topic)
end
def watch_topic
unless @opts[:auto_track] == false
@topic.notifier.watch_topic!(@topic.user_id)
end
TopicUser.auto_watch_new_topic(@topic.id)
CategoryUser.auto_watch_new_topic(@topic)
end
def setup