REVERT: Previous fix was broken, needs more work
This commit is contained in:
parent
0841cd2ba6
commit
ecf3a2a510
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue