Update PublicApiController

pull/878/head
Daniel Supernault 2019-02-24 23:28:35 -07:00
rodzic fcef8c9a2f
commit 41525e07d8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 30 dodań i 2 usunięć

Wyświetl plik

@ -266,7 +266,21 @@ class PublicApiController extends Controller
->limit($limit)
->get();
} else {
$timeline = Status::whereHas('media')
$timeline = Status::select(
'id',
'uri',
'caption',
'rendered',
'profile_id',
'type',
'in_reply_to_id',
'reblog_of_id',
'is_nsfw',
'scope',
'local',
'created_at',
'updated_at'
)->whereHas('media')
->whereLocal(true)
->whereNull('uri')
->whereNotIn('profile_id', $filtered)
@ -355,7 +369,21 @@ class PublicApiController extends Controller
->limit($limit)
->get();
} else {
$timeline = Status::whereHas('media')
$timeline = Status::select(
'id',
'uri',
'caption',
'rendered',
'profile_id',
'type',
'in_reply_to_id',
'reblog_of_id',
'is_nsfw',
'scope',
'local',
'created_at',
'updated_at'
)->whereHas('media')
->whereLocal(true)
->whereNull('uri')
->whereIn('profile_id', $following)