FEATURE: mute/watch/track buttons for private conversations

This commit is contained in:
Sam
2014-01-22 17:46:52 +11:00
parent fc3bad8ff4
commit 7e5a17f277
8 changed files with 66 additions and 12 deletions

View File

@ -37,6 +37,11 @@ class TopicCreator
unless @opts[:auto_track] == false
@topic.notifier.watch_topic!(@topic.user_id)
end
@topic.topic_allowed_users.pluck(:user_id).reject{|id| id == @topic.user_id}.each do |id|
@topic.notifier.watch_topic!(id, nil)
end
TopicUser.auto_watch_new_topic(@topic.id)
CategoryUser.auto_watch_new_topic(@topic)
end