about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/statuses_controller.rb3
1 files changed, 3 insertions, 0 deletions
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]