mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
FIX: Incorrect notification state being published.
This commit is contained in:
@ -405,9 +405,11 @@ class User < ActiveRecord::Base
|
||||
) AS y
|
||||
"
|
||||
|
||||
recent = User.exec_sql(sql, user_id: id,
|
||||
type: Notification.types[:private_message]).values.map do |id, read|
|
||||
[id.to_i, read == 't'.freeze]
|
||||
recent = User.exec_sql(sql,
|
||||
user_id: id,
|
||||
type: Notification.types[:private_message]
|
||||
).values.map! do |id, read|
|
||||
[id.to_i, read]
|
||||
end
|
||||
|
||||
MessageBus.publish("/notification/#{id}",
|
||||
|
Reference in New Issue
Block a user