Simplify culling and fix race condition (#10440)

pull/10447/head
Jeong Arm 2019-04-02 02:17:21 +09:00 committed by Eugen Rochko
parent 2acd8940de
commit 67eb47e25f
1 changed files with 1 additions and 5 deletions

View File

@ -236,11 +236,7 @@ module Mastodon
end end
if [404, 410].include?(code) if [404, 410].include?(code)
unless options[:dry_run] SuspendAccountService.new.call(account, destroy: true) unless options[:dry_run]
SuspendAccountService.new.call(account)
account.destroy
end
culled += 1 culled += 1
say('+', :green, false) say('+', :green, false)
else else