소스 검색

Update SearchController

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

+ 1 - 0
app/Http/Controllers/SearchController.php

@@ -52,6 +52,7 @@ class SearchController extends Controller
                             'entity' => [
                                 'id' => $item->id,
                                 'following' => $item->followedBy(Auth::user()->profile),
+                                'follow_request' => $item->hasFollowRequestById(Auth::user()->profile_id),
                                 'thumb' => $item->avatarUrl()
                             ]
                         ]];