mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 05:53:52 +08:00
Revert unread optimisation, has too many edge cases
This commit is contained in:
@ -294,7 +294,6 @@ class TopicQuery
|
||||
|
||||
list
|
||||
.where("tu.last_read_post_number < topics.#{col_name}")
|
||||
.where("topics.last_unread_at >= first_unread_topic_for(?)", user_id)
|
||||
.where("COALESCE(tu.notification_level, :regular) >= :tracking",
|
||||
regular: TopicUser.notification_levels[:regular], tracking: TopicUser.notification_levels[:tracking])
|
||||
end
|
||||
|
Reference in New Issue
Block a user