Преглед на файлове

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' => [
                             'entity' => [
                                 'id' => $item->id,
                                 'id' => $item->id,
                                 'following' => $item->followedBy(Auth::user()->profile),
                                 'following' => $item->followedBy(Auth::user()->profile),
+                                'follow_request' => $item->hasFollowRequestById(Auth::user()->profile_id),
                                 'thumb' => $item->avatarUrl()
                                 'thumb' => $item->avatarUrl()
                             ]
                             ]
                         ]];
                         ]];