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:
parent
7f4ca91e06
commit
31a54377be
3 changed files with 27 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue