about summary refs log tree commit diff
path: root/app/workers/admin
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-12-03 01:32:08 +0100
committerGitHub <noreply@github.com>2018-12-03 01:32:08 +0100
commit6ddf0432e71aea7c62f1ee7946da5538d2526a13 (patch)
treefa8057bdaee7c582d5aa3cb82071a9805412b082 /app/workers/admin
parent2df5ef18ae3449825fdef6c83d5b3a7b19fd7ebb (diff)
Improve account suspension speed and completeness (#9290)
- Some associations were missing from the clean-up
- Some attributes were not reset on suspension
- Skip federation and streaming deletes when purging a dead domain
- Move account association definitions to concern
Diffstat (limited to 'app/workers/admin')
-rw-r--r--app/workers/admin/suspension_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/admin/suspension_worker.rb b/app/workers/admin/suspension_worker.rb
index e41465ccc..ae8b24d8c 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), remove_user: remove_user)
+    SuspendAccountService.new.call(Account.find(account_id), including_user: remove_user)
   end
 end