mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 12:16:59 +08:00
FIX: If a consistency job hasn't run and a bunch of posts are moved,
don't show as unread in the topic list.
This commit is contained in:
parent
004749871f
commit
e690242858
@ -18,6 +18,7 @@ class Unread
|
||||
def new_posts
|
||||
return 0 if @topic_user.seen_post_count.blank?
|
||||
return 0 if do_not_notify?(@topic_user.notification_level)
|
||||
return 0 if (@topic_user.last_read_post_number||0) > @topic.highest_post_number
|
||||
|
||||
new_posts = (@topic.highest_post_number - @topic_user.seen_post_count)
|
||||
new_posts = 0 if new_posts < 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user