about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-12-06 12:44:38 +0100
committerThibaut Girka <thib@sitedethib.com>2018-12-06 12:44:38 +0100
commit1df392819d544e62ae9f685020e462c960d31635 (patch)
treee43bc3a7addbcc044979dbbc1cb44a86d4502efc /lib
parentfe9340d95e9ae9a1870e9951e9b00ad5df4cc257 (diff)
parent155cf126807ab25da4d0e5da55b2d598c981e2ab (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'lib')
-rw-r--r--lib/mastodon/domains_cli.rb6
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