Commit d3501953 authored by mgabdev's avatar mgabdev

Added check for account variable exists in home_controller meta function

parent d084b8d5
......@@ -20,7 +20,7 @@ class HomeController < ApplicationController
elsif params[:account_username].present?
@account = Account.find_local(params[:account_username])
if params[:id].present?
if params[:id].present? && !@account.nil?
@status = @account.statuses.find(params[:id])
@stream_entry = @status.stream_entry
@type = @stream_entry.activity_type.downcase
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment