Browse Source

Skip blocked domains media on tootctl media refresh (#16914)

closed-social-v3
Jeong Arm 2 years ago
committed by Eugen Rochko
parent
commit
f366a23a23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      lib/mastodon/media_cli.rb

+ 1
- 0
lib/mastodon/media_cli.rb View File

@ -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!

Loading…
Cancel
Save