A platform for community discussion. Free, open, simple.
DEV: add extra safety around original post only implementation (#32521)
Sam067813e18222
diff --git a/plugins/automation/lib/discourse_automation/event_handlers.rb b/plugins/automation/lib/discourse_automation/event_handlers.rbindex 91d7adaad90..cc95c94eb37 100644--- a/plugins/automation/lib/discourse_automation/event_handlers.rb+++ b/plugins/automation/lib/discourse_automation/event_handlers.rb@@ -34,7 +34,7 @@ module DiscourseAutomationoriginal_post_only = automation.trigger_field("original_post_only")if original_post_only["value"]- next if topic.posts_count > 1+ next if post.post_number != 1endfirst_post_only = automation.trigger_field("first_post_only")