2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

staged users automatically watches all topics they participates in

This commit is contained in:
Régis Hanol 2015-11-18 22:24:46 +01:00
parent 7f4ca91e06
commit 31a54377be
3 changed files with 27 additions and 2 deletions

View file

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