Browse Source

Simplify culling and fix race condition (#10440)

pull/4/head
Jeong Arm 5 years ago
committed by Eugen Rochko
parent
commit
67eb47e25f
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      lib/mastodon/accounts_cli.rb

+ 1
- 5
lib/mastodon/accounts_cli.rb View File

@ -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

Loading…
Cancel
Save