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:
parent
15da528870
commit
8536521a72
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue