Explorar o código

Update ProfileController

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
74268874ca
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/ProfileController.php

+ 1 - 1
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 {