From 6ca44fd04fe7cbb5cdac0eee31ba31107bda8f26 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 16 Feb 2020 02:08:21 -0600 Subject: change context of `hidden?` to mean a hidden post, not a non-distributable post --- app/controllers/statuses_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') 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' -- cgit