From c80d4928cef730525c39e692c33984175b23eee9 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 19 Nov 2018 23:44:02 -0700 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 62d9d6723..ff9a92eee 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -152,7 +152,7 @@ class ProfileController extends Controller $blocked = $this->blockedProfileCheck($profile); $check = $this->privateProfileCheck($profile, null); if($check || $blocked) { - return view('profile.private', compact('user')); + return view('profile.private', compact('user', 'is_following')); } } $followers = $profile->followers()->orderBy('created_at', 'desc')->simplePaginate(12); @@ -176,7 +176,7 @@ class ProfileController extends Controller $blocked = $this->blockedProfileCheck($profile); $check = $this->privateProfileCheck($profile, null); if($check || $blocked) { - return view('profile.private', compact('user')); + return view('profile.private', compact('user', 'is_following')); } } $following = $profile->following()->orderBy('created_at', 'desc')->simplePaginate(12);