From ca07a571c729653af2557add3e74e84d05caefd7 Mon Sep 17 00:00:00 2001 From: romanrizzi Date: Mon, 6 Jan 2020 13:37:54 -0300 Subject: [PATCH] FIX: Only agree with the first post when using the 'Delete post + replies and agree' option --- app/models/reviewable_flagged_post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/reviewable_flagged_post.rb b/app/models/reviewable_flagged_post.rb index 5f3a3a6d954..340d63c8b5c 100644 --- a/app/models/reviewable_flagged_post.rb +++ b/app/models/reviewable_flagged_post.rb @@ -228,7 +228,7 @@ class ReviewableFlaggedPost < Reviewable def perform_delete_and_agree_replies(performed_by, args) result = agree(performed_by, args) - PostDestroyer.delete_with_replies(performed_by, post, self, defer_reply_flags: false) + PostDestroyer.delete_with_replies(performed_by, post, self) result end