mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: don't display new/unread notification for muted topics (#9482)
* FEATURE: don't display new/unread notification for muted topics Currently, even if user mute topic, when a new reply to that topic arrives, the user will get "See 1 new or updated topic" message. After clicking on that link, nothing is visible (because the topic is muted) To solve that problem, we will send background message to all users who recently muted that topic that update is coming and they can ignore the next message about that topic.
This commit is contained in:
committed by
GitHub
parent
54ec9f7009
commit
52c1d7337e
@@ -57,7 +57,10 @@ class PostJobsEnqueuer
|
||||
end
|
||||
|
||||
def after_post_create
|
||||
TopicTrackingState.publish_unread(@post) if @post.post_number > 1
|
||||
if @post.post_number > 1
|
||||
TopicTrackingState.publish_muted(@post)
|
||||
TopicTrackingState.publish_unread(@post)
|
||||
end
|
||||
TopicTrackingState.publish_latest(@topic, @post.whisper?)
|
||||
|
||||
Jobs.enqueue_in(SiteSetting.email_time_window_mins.minutes,
|
||||
|
||||
Reference in New Issue
Block a user