Skip to content

A platform for community discussion. Free, open, simple.

DEV: DiscourseEvent for category updated (#13707)

Mark VanLandingham6a9dc556bced
diff --git a/app/controllers/categories_controller.rb b/app/controllers/categories_controller.rb
index 8ba80d6cfda..b60b1a2956b 100644
--- a/app/controllers/categories_controller.rb
+++ b/app/controllers/categories_controller.rb
@@ -163,6 +163,10 @@ class CategoriesController < ApplicationController
end
end
+ if result
+ DiscourseEvent.trigger(:category_updated, cat)
+ end
+
result
end
end