mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:31:10 +08:00
FEATURE: mute/watch/track buttons for private conversations
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user