Skip to content

Commit b08dff9

Browse files
tribelaGargron
authored andcommitted
Simplify culling and fix race condition (mastodon#10440)
1 parent 41dc605 commit b08dff9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

lib/mastodon/accounts_cli.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,7 @@ def cull
236236
end
237237

238238
if [404, 410].include?(code)
239-
unless options[:dry_run]
240-
SuspendAccountService.new.call(account)
241-
account.destroy
242-
end
243-
239+
SuspendAccountService.new.call(account, destroy: true) unless options[:dry_run]
244240
culled += 1
245241
say('+', :green, false)
246242
else

0 commit comments

Comments
 (0)