소스 검색

Update StatusController

Daniel Supernault 6 년 전
부모
커밋
35e0140e87
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);