FIX: Only agree with the first post when using the 'Delete post + replies and agree' option

This commit is contained in:
romanrizzi 2020-01-06 13:37:54 -03:00
parent 784da19e4c
commit ca07a571c7

View File

@ -228,7 +228,7 @@ class ReviewableFlaggedPost < Reviewable
def perform_delete_and_agree_replies(performed_by, args) def perform_delete_and_agree_replies(performed_by, args)
result = agree(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 result
end end