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

@ -523,6 +523,7 @@ class PostRevisor
def bump_topic
return if bypass_bump? || !is_last_post?
@topic.update_column(:bumped_at, Time.now)
TopicTrackingState.publish_muted(@topic)
TopicTrackingState.publish_latest(@topic)
end