Update InternalApiController

pull/666/head
Daniel Supernault 2018-12-23 21:03:37 -07:00
rodzic 7f88500d18
commit 3109911887
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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)