Skip to content
Snippets Groups Projects
Commit 67eb47e2 authored by Jeong Arm's avatar Jeong Arm Committed by Eugen Rochko
Browse files

Simplify culling and fix race condition (#10440)

parent 2acd8940
No related branches found
No related tags found
No related merge requests found
......@@ -236,11 +236,7 @@ module Mastodon
end
if [404, 410].include?(code)
unless options[:dry_run]
SuspendAccountService.new.call(account)
account.destroy
end
SuspendAccountService.new.call(account, destroy: true) unless options[:dry_run]
culled += 1
say('+', :green, false)
else
......
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