A platform for community discussion. Free, open, simple.
FIX: Narrative bot should ignore action on deleted post
Gerhard Schlagerfbd92916e553
diff --git a/plugins/discourse-narrative-bot/plugin.rb b/plugins/discourse-narrative-bot/plugin.rbindex c321a28f2cf..b51e3181473 100644--- a/plugins/discourse-narrative-bot/plugin.rb+++ b/plugins/discourse-narrative-bot/plugin.rb@@ -204,7 +204,7 @@ after_initialize doendself.add_model_callback(PostAction, :after_commit, on: :create) do- if self.user.enqueue_narrative_bot_job?+ if self.post && self.user.enqueue_narrative_bot_job?input =case self.post_action_type_idwhen *PostActionType.flag_types_without_custom.values