瀏覽代碼

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

master
takayamaki 6 年之前
committed by Eugen Rochko
父節點
當前提交
f69d7cb43b
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      lib/tasks/mastodon.rake

+ 2
- 0
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


Loading…
取消
儲存