about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-08-30 20:29:42 -0500
committermultiple creatures <dev@multiple-creature.party>2019-08-30 20:29:42 -0500
commit60c449e1d77c6e11ced796a7e088038d80137de6 (patch)
tree0da0448cf75ceec7d52c94f93ce236742e307727 /app/workers
parent8a9c1b32dac14a8a39f4fb38db82d6487f84e294 (diff)
make sure media attachments are not from a blocked account, CDN, or their subdomains
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/fetch_media_worker.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/workers/fetch_media_worker.rb b/app/workers/fetch_media_worker.rb
index 5dc8cc84b..8b17186a3 100644
--- a/app/workers/fetch_media_worker.rb
+++ b/app/workers/fetch_media_worker.rb
@@ -5,6 +5,7 @@ class FetchMediaWorker
 
   def perform(media_attachment_id, remote_url = nil)
     object = MediaAttachment.find(media_attachment_id.to_i)
+    return if object.blocked?
     if remote_url.nil?
       return if object.remote_url.nil?
     else