diff --git a/app/models/topic.rb b/app/models/topic.rb index 0ded2ab50a1..de5ea80d0d4 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -433,6 +433,7 @@ class Topic < ActiveRecord::Base def update_status(status, enabled, user, opts={}) TopicStatusUpdate.new(self, user).update!(status, enabled, opts) + DiscourseEvent.trigger(:topic_status_updated, self.id, status, enabled) end # Atomically creates the next post number