From 74268874cabb357354a16bc0005bb5eccea8ccfe Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 21 Feb 2019 23:08:06 -0700 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 6a6a418a3..86ba0ce52 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -19,7 +19,7 @@ class ProfileController extends Controller { public function show(Request $request, $username) { - $user = Profile::whereUsername($username)->firstOrFail(); + $user = Profile::whereNull('domain')->whereUsername($username)->firstOrFail(); if($user->status != null) { return $this->accountCheck($user); } else {