소스 검색

Update FollowerController

Daniel Supernault 6 년 전
부모
커밋
d4c347ffa9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Http/Controllers/FollowerController.php

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

@@ -37,7 +37,7 @@ class FollowerController extends Controller
     protected function handleFollowRequest($item)
     {
         $user = Auth::user()->profile;
-        $target = Profile::where('id', '!=', $user->id)->findOrFail($item);
+        $target = Profile::where('id', '!=', $user->id)->whereNull('status')->findOrFail($item);
         $private = (bool) $target->is_private;
         $blocked = UserFilter::whereUserId($target->id)
                 ->whereFilterType('block')