mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: topic_tracking_state when mute_all_categories_by_default is enabled
This commit is contained in:
@@ -306,9 +306,10 @@ class TopicTrackingState
|
||||
#{tags_filter}
|
||||
topics.deleted_at IS NULL AND
|
||||
#{category_filter}
|
||||
(category_users.notification_level IS NULL OR
|
||||
last_read_post_number IS NOT NULL OR
|
||||
category_users.notification_level <> #{CategoryUser.notification_levels[:muted]})
|
||||
NOT (
|
||||
last_read_post_number IS NULL AND
|
||||
COALESCE(category_users.notification_level, #{CategoryUser.default_notification_level}) = #{CategoryUser.notification_levels[:muted]}
|
||||
)
|
||||
SQL
|
||||
|
||||
if opts[:topic_id]
|
||||
|
||||
Reference in New Issue
Block a user