REVERT: Previous fix was broken, needs more work

This commit is contained in:
Robin Ward 2014-08-18 16:46:16 -04:00
parent 0841cd2ba6
commit ecf3a2a510
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class TopicQuery
end end
def self.unread_filter(list) 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]) .where("COALESCE(tu.notification_level, :regular) >= :tracking", regular: TopicUser.notification_levels[:regular], tracking: TopicUser.notification_levels[:tracking])
end end