From 884c60002e3a6f6ee3814d3f3634738bda607dc3 Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Fri, 29 Oct 2021 02:30:44 +0900 Subject: [PATCH] Skip blocked domains media on tootctl media refresh (#16914) --- lib/mastodon/media_cli.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mastodon/media_cli.rb b/lib/mastodon/media_cli.rb index 59c118500a..36ca71844f 100644 --- a/lib/mastodon/media_cli.rb +++ b/lib/mastodon/media_cli.rb @@ -230,6 +230,7 @@ module Mastodon processed, aggregate = parallelize_with_progress(scope) do |media_attachment| next if media_attachment.remote_url.blank? || (!options[:force] && media_attachment.file_file_name.present?) + next if DomainBlock.reject_media?(media_attachment.account.domain) unless options[:dry_run] media_attachment.reset_file!