Przeglądaj źródła

Update StatusController

Daniel Supernault 6 lat temu
rodzic
commit
35e0140e87
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Http/Controllers/StatusController.php

+ 1 - 1
app/Http/Controllers/StatusController.php

@@ -19,7 +19,7 @@ class StatusController extends Controller
 {
     public function show(Request $request, $username, int $id)
     {
-        $user = Profile::whereUsername($username)->firstOrFail();
+        $user = Profile::whereNull('domain')->whereUsername($username)->firstOrFail();
 
         if($user->status != null) {
             return ProfileController::accountCheck($user);