mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
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
Block a user