commit: f69d7cb43b3445d67a3549d87dd71dacf2b5be1e
parent: a7171af0a34f612d05667f1a5c35a4ca834da082
Author: takayamaki <fsgiko@gmail.com>
Date: Thu, 22 Feb 2018 00:30:46 +0900
fix purge_removed_accounts task should suspend account before delete it (#6521)
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake
@@ -752,6 +752,7 @@ namespace :mastodon do
if [404, 410].include?(res.code)
if options[:force]
+ SuspendAccountService.new.call(account)
account.destroy
else
progress_bar.pause
@@ -764,6 +765,7 @@ namespace :mastodon do
if confirm.casecmp('n').zero?
next
else
+ SuspendAccountService.new.call(account)
account.destroy
end
end