From 98ca36dc65567c063c722ddd867c955e39c3e499 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 5 Aug 2019 21:10:47 -0600 Subject: [PATCH] Update SearchController --- app/Http/Controllers/SearchController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index fc336c301..85fe256f9 100644 --- a/app/Http/Controllers/SearchController.php +++ b/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() ] ]];