mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 18:01:25 +08:00
FIX: Narrative bot should ignore action on deleted post
This commit is contained in:
@ -204,7 +204,7 @@ after_initialize do
|
|||||||
end
|
end
|
||||||
|
|
||||||
self.add_model_callback(PostAction, :after_commit, on: :create) do
|
self.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 =
|
input =
|
||||||
case self.post_action_type_id
|
case self.post_action_type_id
|
||||||
when *PostActionType.flag_types_without_custom.values
|
when *PostActionType.flag_types_without_custom.values
|
||||||
|
Reference in New Issue
Block a user