From dfbcb0ae244eb896cb8fe2d91eb56d36dc6af41e Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 4 Jun 2018 23:41:40 -0600 Subject: [PATCH] Update ProfileController --- app/Http/Controllers/ProfileController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 565d275c6..9c7fa9041 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -31,7 +31,7 @@ class ProfileController extends Controller // TODO: refactor this mess $owner = Auth::check() && Auth::id() === $user->user_id; - $following = ($owner == false && Auth::check()) ? $user->followedBy(Auth::user()->profile) : false; + $is_following = ($owner == false && Auth::check()) ? $user->followedBy(Auth::user()->profile) : false; $timeline = $user->statuses() ->whereHas('media') ->whereNull('in_reply_to_id') @@ -39,7 +39,7 @@ class ProfileController extends Controller ->withCount(['comments', 'likes']) ->simplePaginate(21); - return view('profile.show', compact('user', 'owner', 'following', 'timeline')); + return view('profile.show', compact('user', 'owner', 'is_following', 'timeline')); } public function showActivityPub(Request $request, $user)