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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

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