about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorJeong Arm <kjwonmail@gmail.com>2021-10-29 02:30:44 +0900
committerGitHub <noreply@github.com>2021-10-28 19:30:44 +0200
commit884c60002e3a6f6ee3814d3f3634738bda607dc3 (patch)
treea212c49184fc38fcfe878c7dc08710dc3f7121c7 /lib
parent7ccbfb55dd511510f2f2c0ac08e774946628fc81 (diff)
Skip blocked domains media on tootctl media refresh (#16914)
Diffstat (limited to 'lib')
-rw-r--r--lib/mastodon/media_cli.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mastodon/media_cli.rb b/lib/mastodon/media_cli.rb
index 59c118500..36ca71844 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!