From 770d38d025dba4168f59c4c19e87661549b3584e Mon Sep 17 00:00:00 2001 From: Joe Buhlig Date: Wed, 24 Feb 2016 08:59:06 -0600 Subject: [PATCH] Add topic status_update change event --- app/models/topic.rb | 1 + 1 file changed, 1 insertion(+) 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