mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
staged users automatically watches all topics they participates in
This commit is contained in:
@@ -383,8 +383,11 @@ class PostCreator
|
||||
post_number: @post.post_number,
|
||||
msecs: 5000)
|
||||
|
||||
|
||||
TopicUser.auto_track(@user.id, @topic.id, TopicUser.notification_reasons[:created_post])
|
||||
if @user.staged
|
||||
TopicUser.auto_watch(@user.id, @topic.id)
|
||||
else
|
||||
TopicUser.auto_track(@user.id, @topic.id, TopicUser.notification_reasons[:created_post])
|
||||
end
|
||||
end
|
||||
|
||||
def enqueue_jobs
|
||||
|
||||
Reference in New Issue
Block a user