diff options
author | Reverite <github@reverite.sh> | 2018-12-06 15:56:22 -0800 |
---|---|---|
committer | Reverite <github@reverite.sh> | 2018-12-06 15:56:22 -0800 |
commit | a78e3f2206ddaeeb3e6f1c23e4b524af29e92b04 (patch) | |
tree | a054dda635ffd019bf2fdc10ed4f3341264f1490 /lib | |
parent | a2cb6e3996f4e8f7775557e84c9e242d937f8f0c (diff) | |
parent | e3682c9c1750e5e7e5d2f817e29f6760a18400ca (diff) |
Merge branch 'glitch'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mastodon/domains_cli.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/mastodon/domains_cli.rb b/lib/mastodon/domains_cli.rb index a7a5caa11..16e298584 100644 --- a/lib/mastodon/domains_cli.rb +++ b/lib/mastodon/domains_cli.rb @@ -22,11 +22,7 @@ module Mastodon dry_run = options[:dry_run] ? ' (DRY RUN)' : '' Account.where(domain: domain).find_each do |account| - unless options[:dry_run] - SuspendAccountService.new.call(account) - account.destroy - end - + SuspendAccountService.new.call(account, destroy: true) unless options[:dry_run] removed += 1 say('.', :green, false) end |