mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:11:04 +08:00
FIX: publish presence to allowed groups as well
This commit is contained in:
@ -60,10 +60,13 @@ after_initialize do
|
|||||||
|
|
||||||
if topic.archetype == Archetype.private_message
|
if topic.archetype == Archetype.private_message
|
||||||
user_ids = User.where('admin OR moderator').pluck(:id) + topic.allowed_users.pluck(:id)
|
user_ids = User.where('admin OR moderator').pluck(:id) + topic.allowed_users.pluck(:id)
|
||||||
|
group_ids = topic.allowed_groups.pluck(:id)
|
||||||
|
|
||||||
MessageBus.publish(
|
MessageBus.publish(
|
||||||
messagebus_channel,
|
messagebus_channel,
|
||||||
message.as_json,
|
message.as_json,
|
||||||
user_ids: user_ids,
|
user_ids: user_ids,
|
||||||
|
group_ids: group_ids,
|
||||||
max_backlog_age: MAX_BACKLOG_AGE
|
max_backlog_age: MAX_BACKLOG_AGE
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user