about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-16 02:08:21 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-16 02:08:21 -0600
commit6ca44fd04fe7cbb5cdac0eee31ba31107bda8f26 (patch)
tree969b9eae4155f42e02e73d64d637a46fe86c51af /app/controllers
parentbc201505d02e94259f9d48d2b0341fc704af781e (diff)
change context of `hidden?` to mean a hidden post, not a non-distributable post
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/statuses_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/statuses_controller.rb b/app/controllers/statuses_controller.rb
index f95f1dfe0..00db6c169 100644
--- a/app/controllers/statuses_controller.rb
+++ b/app/controllers/statuses_controller.rb
@@ -47,7 +47,7 @@ class StatusesController < ApplicationController
   end
 
   def embed
-    raise ActiveRecord::RecordNotFound if @status.hidden?
+    raise ActiveRecord::RecordNotFound unless @status.distributable?
 
     expires_in 180, public: true
     response.headers['X-Frame-Options'] = 'ALLOWALL'