Update DiscoverController

This commit is contained in:
Daniel Supernault 2018-08-30 22:58:57 -06:00
parent d4691b007b
commit 5a5f1bf637
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 2 additions and 3 deletions

View File

@ -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();