Publish lightboxing on the message bus

With this change, images appear to lightbox instantly on my development
machine.
This commit is contained in:
riking 2014-08-26 17:58:43 -07:00
parent b7e8bcda07
commit 0a7a4eae99

View File

@ -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