From ecf3a2a5100d99c2e4e86d946c00dc44ad500310 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 18 Aug 2014 16:46:16 -0400 Subject: [PATCH] REVERT: Previous fix was broken, needs more work --- 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 29e5507016b..02160c3b0e9 100644 --- a/lib/topic_query.rb +++ b/lib/topic_query.rb @@ -147,7 +147,7 @@ class TopicQuery end def self.unread_filter(list) - list.where("tu.seen_post_count < topics.highest_post_number") + list.where("tu.last_read_post_number < topics.highest_post_number") .where("COALESCE(tu.notification_level, :regular) >= :tracking", regular: TopicUser.notification_levels[:regular], tracking: TopicUser.notification_levels[:tracking]) end