mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update ApiV1Controller, remove pinned attribute to match MastoAPI Status entity
This commit is contained in:
parent
99fc734721
commit
6057de305e
3 changed files with 0 additions and 3 deletions
|
@ -2245,7 +2245,6 @@ class ApiV1Controller extends Controller
|
|||
$res['favourited'] = false;
|
||||
$res['language'] = 'en';
|
||||
$res['bookmarked'] = false;
|
||||
$res['pinned'] = false;
|
||||
$res['card'] = null;
|
||||
return $this->json($res);
|
||||
}
|
||||
|
|
|
@ -31,7 +31,6 @@ class StatusTransformer extends Fractal\TransformerAbstract
|
|||
'favourited' => $status->liked(),
|
||||
'muted' => false,
|
||||
'bookmarked' => false,
|
||||
'pinned' => false,
|
||||
'content' => $status->rendered ?? $status->caption ?? '',
|
||||
'reblog' => null,
|
||||
'application' => [
|
||||
|
|
|
@ -50,7 +50,6 @@ class StatusStatelessTransformer extends Fractal\TransformerAbstract
|
|||
'website' => null
|
||||
],
|
||||
'language' => null,
|
||||
'pinned' => null,
|
||||
'mentions' => StatusMentionService::get($status->id),
|
||||
'tags' => [],
|
||||
'pf_type' => $status->type ?? $status->setType(),
|
||||
|
|
Loading…
Reference in a new issue