diff --git a/lib/topic_query.rb b/lib/topic_query.rb index ed23df55672..32a09aa706d 100644 --- a/lib/topic_query.rb +++ b/lib/topic_query.rb @@ -399,7 +399,7 @@ class TopicQuery def remove_muted_topics(list, 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 list