FIX: the muted message should be sent after edit (#9593)

Recently, we added feature that we are sending `/muted` to users who muted specific topic just before `/latest` so the client knows to ignore those messages - https://github.com/discourse/discourse/pull/9482

Same `/muted` message should be included when the post is edited
This commit is contained in:
Krzysztof Kotlarek
2020-05-01 08:33:57 +10:00
committed by GitHub
parent d615de9139
commit 37e93914fc
5 changed files with 24 additions and 10 deletions

View File

@@ -58,7 +58,7 @@ class PostJobsEnqueuer
def after_post_create
if @post.post_number > 1
TopicTrackingState.publish_muted(@post)
TopicTrackingState.publish_muted(@post.topic)
TopicTrackingState.publish_unread(@post)
end
TopicTrackingState.publish_latest(@topic, @post.whisper?)