mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
BUGFIX: not notifying unread and new counts correctly
This commit is contained in:
parent
3767080f3b
commit
41b15d1ad1
2 changed files with 5 additions and 3 deletions
|
@ -44,7 +44,7 @@ class TopicTrackingState
|
|||
|
||||
TopicUser
|
||||
.tracking(post.topic_id)
|
||||
.select([:user_id,:last_read_post_number])
|
||||
.select([:user_id,:last_read_post_number, :notification_level])
|
||||
.each do |tu|
|
||||
|
||||
message = {
|
||||
|
@ -54,7 +54,8 @@ class TopicTrackingState
|
|||
last_read_post_number: tu.last_read_post_number,
|
||||
highest_post_number: post.post_number,
|
||||
created_at: post.created_at,
|
||||
topic_id: post.topic_id
|
||||
topic_id: post.topic_id,
|
||||
notification_level: tu.notification_level
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue