mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
DEV: Fix another MessageBus::InvalidMessageTarget
error.
Follow-up to c2f2b57a9b
.
This commit is contained in:
parent
f7438fc64b
commit
49f53bdc50
1 changed files with 7 additions and 5 deletions
|
@ -438,6 +438,7 @@ SQL
|
||||||
}
|
}
|
||||||
|
|
||||||
channels.each do |channel, ids|
|
channels.each do |channel, ids|
|
||||||
|
if ids.present?
|
||||||
MessageBus.publish(
|
MessageBus.publish(
|
||||||
channel,
|
channel,
|
||||||
message.as_json,
|
message.as_json,
|
||||||
|
@ -445,6 +446,7 @@ SQL
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def self.publish_read_indicator_on_write(topic_id, last_read_post_number, user_id)
|
def self.publish_read_indicator_on_write(topic_id, last_read_post_number, user_id)
|
||||||
topic = Topic.includes(:allowed_groups).select(:highest_post_number, :archetype, :id).find_by(id: topic_id)
|
topic = Topic.includes(:allowed_groups).select(:highest_post_number, :archetype, :id).find_by(id: topic_id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue