Merge pull request #423 from pixelfed/frontend-ui-refactor

Fix discover bug
This commit is contained in:
daniel 2018-08-30 23:08:20 -06:00 committed by GitHub
commit 54e69817a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)