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/workers | |
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/workers')
-rw-r--r-- | app/workers/admin/suspension_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/admin/suspension_worker.rb b/app/workers/admin/suspension_worker.rb index ae8b24d8c..83c815efd 100644 --- a/app/workers/admin/suspension_worker.rb +++ b/app/workers/admin/suspension_worker.rb @@ -6,6 +6,6 @@ class Admin::SuspensionWorker sidekiq_options queue: 'pull' def perform(account_id, remove_user = false) - SuspendAccountService.new.call(Account.find(account_id), including_user: remove_user) + SuspendAccountService.new.call(Account.find(account_id), reserve_username: true, reserve_email: !remove_user) end end |