Fix discover bug

This commit is contained in:
Daniel Supernault 2018-08-30 23:06:13 -06:00
parent 5a5f1bf637
commit ff860c9b85
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,10 @@ class DiscoverController extends Controller
->whereIn('filter_type', ['mute', 'block'])
->pluck('filterable_id');
$following->push($pid);
$following->push($filtered);
if($filtered->count() > 0) {
$following->push($filtered);
}
$people = Profile::inRandomOrder()
->whereNotIn('id', $following)