|
@@ -112,6 +112,7 @@ class InternalApiController extends Controller
|
|
|
|
|
|
$people = Profile::select('id', 'name', 'username')
|
|
$people = Profile::select('id', 'name', 'username')
|
|
->with('avatar')
|
|
->with('avatar')
|
|
|
|
+ ->whereNull('status')
|
|
->orderByRaw('rand()')
|
|
->orderByRaw('rand()')
|
|
->whereHas('statuses')
|
|
->whereHas('statuses')
|
|
->whereNull('domain')
|
|
->whereNull('domain')
|
|
@@ -206,6 +207,9 @@ class InternalApiController extends Controller
|
|
|
|
|
|
$posts = Status::select('id', 'caption', 'profile_id')
|
|
$posts = Status::select('id', 'caption', 'profile_id')
|
|
->whereHas('media')
|
|
->whereHas('media')
|
|
|
|
+ ->whereHas('profile', function($q) {
|
|
|
|
+ return $q->whereNull('status');
|
|
|
|
+ })
|
|
->whereIsNsfw(false)
|
|
->whereIsNsfw(false)
|
|
->whereVisibility('public')
|
|
->whereVisibility('public')
|
|
->whereNotIn('profile_id', $following)
|
|
->whereNotIn('profile_id', $following)
|