diff --git a/app/models/admin/status_batch_action.rb b/app/models/admin/status_batch_action.rb index 52959c074f015c..f4b6fb3c7e9400 100644 --- a/app/models/admin/status_batch_action.rb +++ b/app/models/admin/status_batch_action.rb @@ -52,7 +52,7 @@ def handle_delete! # Immediately remove public copy of media instead of waiting for # the vacuum_orphaned_records job to take care of it later on - Admin::MediaAttachmentDeletionWorker.perform_inline(status.media_attachments) + Admin::MediaAttachmentDeletionWorker.perform_async(status.media_attachments.map(&:id)) end if with_report?