mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-29 20:13:15 +00:00
Simplify culling and fix race condition (#10440)
This commit is contained in:
parent
2acd8940de
commit
67eb47e25f
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue