1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-24 07:06:18 +09:00

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

This commit is contained in:
takayamaki 2018-02-22 00:30:46 +09:00 committed by Eugen Rochko
parent a7171af0a3
commit f69d7cb43b

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