mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Fix another MessageBus::InvalidMessageTarget error.
Follow-up to c2f2b57a9b.
This commit is contained in:
@@ -438,11 +438,13 @@ SQL
|
|||||||
}
|
}
|
||||||
|
|
||||||
channels.each do |channel, ids|
|
channels.each do |channel, ids|
|
||||||
MessageBus.publish(
|
if ids.present?
|
||||||
channel,
|
MessageBus.publish(
|
||||||
message.as_json,
|
channel,
|
||||||
user_ids: ids
|
message.as_json,
|
||||||
)
|
user_ids: ids
|
||||||
|
)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user