mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: New counts were taking into account muted categories
This commit is contained in:
parent
70ca6171d1
commit
fee9870427
2 changed files with 8 additions and 0 deletions
|
@ -133,6 +133,10 @@ class TopicTrackingState
|
|||
JOIN group_users gu ON gu.user_id = u.id AND cg.group_id = gu.group_id
|
||||
WHERE c2.read_restricted )
|
||||
)
|
||||
AND NOT EXISTS( SELECT 1 FROM category_users cu
|
||||
WHERE cu.user_id = u.id AND
|
||||
cu.category_id = topics.category_id AND
|
||||
cu.notification_level = #{CategoryUser.notification_levels[:muted]})
|
||||
|
||||
SQL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue