about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-12-06 17:40:43 +0100
committerGitHub <noreply@github.com>2018-12-06 17:40:43 +0100
commite3682c9c1750e5e7e5d2f817e29f6760a18400ca (patch)
tree1fb5c57e634a16136e764178e2e1ca1d0e009a25 /lib
parent4167ed375bd9402e91a998fad8f173fa76b2eec3 (diff)
parent24822eca73ac2bc37870bd27cae8ee6b17785759 (diff)
Merge pull request #848 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
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