mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
correct implementation
This commit is contained in:
parent
2c4f290786
commit
3575012a47
1 changed files with 1 additions and 1 deletions
|
@ -399,7 +399,7 @@ class TopicQuery
|
||||||
|
|
||||||
def remove_muted_topics(list, user)
|
def remove_muted_topics(list, user)
|
||||||
if user
|
if user
|
||||||
list = list.where('tu.notification_level <> :muted', muted: TopicUser.notification_levels[:muted])
|
list = list.where('COALESCE(tu.notification_level,1) > :muted', muted: TopicUser.notification_levels[:muted])
|
||||||
end
|
end
|
||||||
|
|
||||||
list
|
list
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue