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 {