Browse Source

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

pull/4/head
takayamaki 6 years ago
committed by Eugen Rochko
parent
commit
f69d7cb43b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      lib/tasks/mastodon.rake

+ 2
- 0
lib/tasks/mastodon.rake 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

Loading…
Cancel
Save