mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-23 06:51:27 +00:00
Update InternalApiController
This commit is contained in:
parent
7f88500d18
commit
3109911887
1 changed files with 4 additions and 0 deletions
|
@ -112,6 +112,7 @@ class InternalApiController extends Controller
|
|||
|
||||
$people = Profile::select('id', 'name', 'username')
|
||||
->with('avatar')
|
||||
->whereNull('status')
|
||||
->orderByRaw('rand()')
|
||||
->whereHas('statuses')
|
||||
->whereNull('domain')
|
||||
|
@ -206,6 +207,9 @@ class InternalApiController extends Controller
|
|||
|
||||
$posts = Status::select('id', 'caption', 'profile_id')
|
||||
->whereHas('media')
|
||||
->whereHas('profile', function($q) {
|
||||
return $q->whereNull('status');
|
||||
})
|
||||
->whereIsNsfw(false)
|
||||
->whereVisibility('public')
|
||||
->whereNotIn('profile_id', $following)
|
||||
|
|
Loading…
Reference in a new issue