|
|
@ -28,11 +28,10 @@ class DiscoverController extends Controller
|
|
|
|
->whereFilterableType('App\Profile')
|
|
|
|
->whereFilterableType('App\Profile')
|
|
|
|
->whereIn('filter_type', ['mute', 'block'])
|
|
|
|
->whereIn('filter_type', ['mute', 'block'])
|
|
|
|
->pluck('filterable_id');
|
|
|
|
->pluck('filterable_id');
|
|
|
|
|
|
|
|
$following->push($pid);
|
|
|
|
$following = $following->push($filtered);
|
|
|
|
$following->push($filtered);
|
|
|
|
|
|
|
|
|
|
|
|
$people = Profile::inRandomOrder()
|
|
|
|
$people = Profile::inRandomOrder()
|
|
|
|
->where('id', '!=', $pid)
|
|
|
|
|
|
|
|
->whereNotIn('id', $following)
|
|
|
|
->whereNotIn('id', $following)
|
|
|
|
->take(3)
|
|
|
|
->take(3)
|
|
|
|
->get();
|
|
|
|
->get();
|
|
|
|