DEV: Add DiscourseEvent before post changes are published (#11759)

This can be used to add to the message notifying the client about the
update.
This commit is contained in:
Bianca Nenciu
2021-01-20 10:51:31 +02:00
committed by GitHub
parent 15da528870
commit 8536521a72

View File

@ -634,6 +634,8 @@ class PostRevisor
{}
end
DiscourseEvent.trigger(:before_post_publish_changes, post_changes, @topic_changes, options)
@post.publish_change_to_clients!(:revised, options)
end