fix purge_removed_accounts task should suspend account before delete it (#6521)

lolsob-rspec
takayamaki 2018-02-22 00:30:46 +09:00 committed by Eugen Rochko
parent c34ff9fb82
commit 2b3d62a8a5
1 changed files with 2 additions and 0 deletions

View File

@ -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