about summary refs log tree commit diff
path: root/app/controllers/media_proxy_controller.rb
diff options
context:
space:
mode:
authorReverite <github@reverite.sh>2019-06-26 20:31:07 -0700
committerReverite <github@reverite.sh>2019-06-26 20:31:07 -0700
commit3fa90982efda2109ddf90d81f5ed3449f8282642 (patch)
treee5514f4c72c9ffb44059a2afb7fdf24d0348bbd4 /app/controllers/media_proxy_controller.rb
parent714940de498e93a8bf40dcda1835217df18741bf (diff)
parent9ef25877dfda12cf31ec586294e4d4908f5be4f0 (diff)
Merge branch 'glitch' into production
Diffstat (limited to 'app/controllers/media_proxy_controller.rb')
-rw-r--r--app/controllers/media_proxy_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/media_proxy_controller.rb b/app/controllers/media_proxy_controller.rb
index 950cf6d09..8fc18dd06 100644
--- a/app/controllers/media_proxy_controller.rb
+++ b/app/controllers/media_proxy_controller.rb
@@ -39,6 +39,6 @@ class MediaProxyController < ApplicationController
   end
 
   def reject_media?
-    DomainBlock.find_by(domain: @media_attachment.account.domain)&.reject_media?
+    DomainBlock.reject_media?(@media_attachment.account.domain)
   end
 end