From 8867fee609d2bfee7d1750337f43167de9ef9175 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Fri, 23 Aug 2019 00:03:14 -0500 Subject: raise 404 if no stream entry --- app/controllers/statuses_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/statuses_controller.rb b/app/controllers/statuses_controller.rb index 7af237da4..bb6f0fd8c 100644 --- a/app/controllers/statuses_controller.rb +++ b/app/controllers/statuses_controller.rb @@ -190,6 +190,9 @@ class StatusesController < ApplicationController def set_status @status = @account.statuses.find(params[:id]) @stream_entry = @status.stream_entry + + raise ActiveRecord::RecordNotFound if @stream_entry.nil? + @type = @stream_entry.activity_type.downcase @sharekey = params[:key] -- cgit