From a9387c5167ff18274e00afc95d82ea1f8d31ddcc Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Wed, 25 Nov 2020 16:26:53 -0600 Subject: [PATCH] Updated domains cli remoteallremote command batching MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - domains cli remoteallremote command batching --- lib/gabsocial/domains_cli.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gabsocial/domains_cli.rb b/lib/gabsocial/domains_cli.rb index c3640f21..8b1f4c47 100644 --- a/lib/gabsocial/domains_cli.rb +++ b/lib/gabsocial/domains_cli.rb @@ -44,7 +44,7 @@ module GabSocial def deleteallremote dry_run = options[:dry_run] ? ' (DRY RUN)' : '' - Account.remote.by_domain_accounts.each do |acct| + Account.remote.by_domain_accounts.find_in_batches do |acct| domain = acct.domain say("\n\n\n - Starting domain block for #{domain} #{dry_run}", :green) @@ -64,7 +64,7 @@ module GabSocial end end - say('\nDomain block deleteallremote done', :green) + say('\n\n - Domain block deleteallremote done', :green) end option :concurrency, type: :numeric, default: 50, aliases: [:c]