From c15cbe3fbbcf18af129038dcc497221770655310 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 5 Aug 2019 00:06:56 -0600 Subject: [PATCH] Update ProfileController, add /i/me redirect --- app/Http/Controllers/ProfileController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 870af7340..7ab41a286 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -245,4 +245,10 @@ class ProfileController extends Controller } return view('profile.following', compact('user', 'profile', 'following', 'owner', 'is_following', 'is_admin', 'settings')); } + + public function meRedirect() + { + abort_if(!Auth::check(), 404); + return redirect(Auth::user()->url()); + } }