diff options
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/fetch_media_worker.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/workers/fetch_media_worker.rb b/app/workers/fetch_media_worker.rb index 3e5eafb66..416fbb0e2 100644 --- a/app/workers/fetch_media_worker.rb +++ b/app/workers/fetch_media_worker.rb @@ -7,8 +7,10 @@ class FetchMediaWorker def perform(media_attachment_id, remote_url: nil, force: false) object = MediaAttachment.find(media_attachment_id.to_i) - return if object.blocked? + + return if object&.account.nil? || DomainBlock.reject_media?(object.account.domain) return unless force || object.needs_redownload? + if remote_url.nil? return if object.remote_url.nil? else |