mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 07:06:47 +08:00
FEATURE: new watched_precedence_over_muted setting (#22252)
New setting which allow admin to define behavior when topic is in watched category and muted topic and vice versa. If watched_precedence_over_muted setting is true, that topic is still visible in list of topics and notification is created. If watched_precedence_over_muted setting is false, that topic is not still visible in list of topics and notification is skipped as well.
This commit is contained in:

committed by
GitHub

parent
4f7f9ef87c
commit
9cf981f1f1
@ -49,7 +49,7 @@ class TopicQuery
|
||||
|
||||
def list_private_messages_new(user, type = :user)
|
||||
list = filter_private_message_new(user, type)
|
||||
list = TopicQuery.remove_muted_tags(list, user)
|
||||
list = TopicQuery.remove_muted_tags(list, user, skip_categories: true)
|
||||
list = remove_dismissed(list, user)
|
||||
|
||||
create_list(:private_messages, {}, list)
|
||||
|
Reference in New Issue
Block a user