From 64dae33a87446db01729b8bcf3cc745591d7411d Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 8 Sep 2018 21:22:19 -0600 Subject: [PATCH] Update ProfileController --- app/Http/Controllers/ProfileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index e06789b5..ca04e92b 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -132,7 +132,7 @@ class ProfileController extends Controller $blocked = $this->blockedProfileCheck($profile); $check = $this->privateProfileCheck($profile, null); if($check || $blocked) { - return view('profile.private', compact('user')); + return redirect($profile->url()); } } $items = $profile->statuses()->whereIn('visibility',['public', 'unlisted'])->orderBy('created_at', 'desc')->take(10)->get();