mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-10 14:04:35 -04:00
FIX: explicitly tracked topics will show up even if category is muted
This commit is contained in:
parent
a27abf5ce7
commit
a56e3ccea0
1 changed files with 2 additions and 0 deletions
|
@ -408,8 +408,10 @@ class TopicQuery
|
|||
AND cu.category_id = topics.category_id
|
||||
AND cu.notification_level = :muted
|
||||
AND cu.category_id <> :category_id
|
||||
AND (tu.notification_level IS NULL OR tu.notification_level < :tracking)
|
||||
)", user_id: user.id,
|
||||
muted: CategoryUser.notification_levels[:muted],
|
||||
tracking: TopicUser.notification_levels[:tracking],
|
||||
category_id: category_id || -1)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue