mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 13:24:58 +08:00
Publish lightboxing on the message bus
With this change, images appear to lightbox instantly on my development machine.
This commit is contained in:
parent
b7e8bcda07
commit
0a7a4eae99
|
@ -16,7 +16,16 @@ module Jobs
|
|||
cp.post_process(args[:bypass_bump])
|
||||
|
||||
# If we changed the document, save it
|
||||
post.update_column(:cooked, cp.html) if cp.dirty?
|
||||
if cp.dirty?
|
||||
post.update_column(:cooked, cp.html)
|
||||
|
||||
MessageBus.publish("/topic/#{post.topic_id}", {
|
||||
type: "revised",
|
||||
id: post.id,
|
||||
updated_at: Time.now,
|
||||
post_number: post.post_number
|
||||
}, group_ids: post.topic.secure_group_ids )
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user