Daniel Supernault 6 лет назад
Родитель
Сommit
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()
                             ]
                         ]];