diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-11 16:32:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-11 16:32:44 +0200 |
commit | c5d37f18cb3f4d6212fb8f3e1c4e1e027f677ec5 (patch) | |
tree | 190b0c85e6e8f3880d9d291781d9a73185e0252c /app/models/form/status_batch.rb | |
parent | 4fe127664b0ae22a528b4a4467ab2de92e3da3ef (diff) |
Change deletes to preserve soft-deleted statuses in unresolved reports (#11805)
Change all account actions except "none" to resolve all unresolved reports Refactor `SuspendAccountService` to be more readable
Diffstat (limited to 'app/models/form/status_batch.rb')
-rw-r--r-- | app/models/form/status_batch.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/form/status_batch.rb b/app/models/form/status_batch.rb index e09cc2594..c4943a7ea 100644 --- a/app/models/form/status_batch.rb +++ b/app/models/form/status_batch.rb @@ -35,7 +35,7 @@ class Form::StatusBatch def delete_statuses Status.where(id: status_ids).reorder(nil).find_each do |status| status.discard - RemovalWorker.perform_async(status.id, redraft: false) + RemovalWorker.perform_async(status.id, immediate: true) Tombstone.find_or_create_by(uri: status.uri, account: status.account, by_moderator: true) log_action :destroy, status end |