mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08: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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue