Skip to content
Snippets Groups Projects
Unverified Commit 884c6000 authored by Jeong Arm's avatar Jeong Arm Committed by GitHub
Browse files

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

parent 7ccbfb55
No related branches found
No related tags found
No related merge requests found
......@@ -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!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment