diff --git a/app/Http/Controllers/SiteController.php b/app/Http/Controllers/SiteController.php index 93b4b1e54..cba27894a 100644 --- a/app/Http/Controllers/SiteController.php +++ b/app/Http/Controllers/SiteController.php @@ -116,6 +116,7 @@ class SiteController extends Controller ]); $profile = Profile::whereUsername($request->input('user'))->firstOrFail(); $user = $request->user(); + abort_if($profile->id == $user->profile_id, 404); $following = $user != null ? FollowerService::follows($user->profile_id, $profile->id) : false; return view('site.intents.follow', compact('profile', 'user', 'following')); }