mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Update PublicApiController
This commit is contained in:
parent
fcef8c9a2f
commit
41525e07d8
1 changed files with 30 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue