about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-09-10 04:44:26 -0500
committerFire Demon <firedemon@creature.cafe>2020-09-10 04:52:56 -0500
commit346aa6566206c6a86371883e736984d1a14012dd (patch)
tree4166ab8422ccf490deba3376bc4a1d32cb62926a /lib
parent4b97e1cb4e06b7e3afefb39b7f774de9160fca02 (diff)
[Moderation, Privacy] Ask remote servers to purge local account content when defederating
Diffstat (limited to 'lib')
-rw-r--r--lib/mastodon/domains_cli.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/mastodon/domains_cli.rb b/lib/mastodon/domains_cli.rb
index 558737c27..1b2fa0dd8 100644
--- a/lib/mastodon/domains_cli.rb
+++ b/lib/mastodon/domains_cli.rb
@@ -41,6 +41,11 @@ module Mastodon
         end
       end
 
+      say('Scheduling account defederation messages to be sent to target domains...')
+      DefederateDomainService.new.call(scope.pluck(:domain).uniq)
+      say('Done!', :green)
+
+      say('Deleting accounts from target domains...')
       processed, = parallelize_with_progress(scope) do |account|
         SuspendAccountService.new.call(account, reserve_username: false, skip_side_effects: true) unless options[:dry_run]
       end