A platform for community discussion. Free, open, simple.
DEV: Add DiscourseEvent before post changes are published (#11759)
Bianca Nenciu8536521a72c7
diff --git a/lib/post_revisor.rb b/lib/post_revisor.rbindex 46797a76da1..76e2c4b28e6 100644--- a/lib/post_revisor.rb+++ b/lib/post_revisor.rb@@ -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