From 5a5f1bf637f4d283c7a6a0b2562200f5069f00da Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 30 Aug 2018 22:58:57 -0600 Subject: [PATCH] Update DiscoverController --- app/Http/Controllers/DiscoverController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/DiscoverController.php b/app/Http/Controllers/DiscoverController.php index fada324f..9885c4c4 100644 --- a/app/Http/Controllers/DiscoverController.php +++ b/app/Http/Controllers/DiscoverController.php @@ -28,11 +28,10 @@ class DiscoverController extends Controller ->whereFilterableType('App\Profile') ->whereIn('filter_type', ['mute', 'block']) ->pluck('filterable_id'); - - $following = $following->push($filtered); + $following->push($pid); + $following->push($filtered); $people = Profile::inRandomOrder() - ->where('id', '!=', $pid) ->whereNotIn('id', $following) ->take(3) ->get();