Skip to content
Snippets Groups Projects
Commit f69d7cb4 authored by takayamaki's avatar takayamaki Committed by Eugen Rochko
Browse files

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

parent a7171af0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment