From 3575012a47b451f301959573b079cb879ebc3342 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 2 Nov 2015 14:59:10 +1100 Subject: [PATCH] correct implementation --- lib/topic_query.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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