Update ApiV1Controller, remove pinned attribute to match MastoAPI Status entity

This commit is contained in:
Daniel Supernault 2022-03-25 02:46:12 -06:00
parent 99fc734721
commit 6057de305e
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
3 changed files with 0 additions and 3 deletions

View file

@ -2245,7 +2245,6 @@ class ApiV1Controller extends Controller
$res['favourited'] = false; $res['favourited'] = false;
$res['language'] = 'en'; $res['language'] = 'en';
$res['bookmarked'] = false; $res['bookmarked'] = false;
$res['pinned'] = false;
$res['card'] = null; $res['card'] = null;
return $this->json($res); return $this->json($res);
} }

View file

@ -31,7 +31,6 @@ class StatusTransformer extends Fractal\TransformerAbstract
'favourited' => $status->liked(), 'favourited' => $status->liked(),
'muted' => false, 'muted' => false,
'bookmarked' => false, 'bookmarked' => false,
'pinned' => false,
'content' => $status->rendered ?? $status->caption ?? '', 'content' => $status->rendered ?? $status->caption ?? '',
'reblog' => null, 'reblog' => null,
'application' => [ 'application' => [

View file

@ -50,7 +50,6 @@ class StatusStatelessTransformer extends Fractal\TransformerAbstract
'website' => null 'website' => null
], ],
'language' => null, 'language' => null,
'pinned' => null,
'mentions' => StatusMentionService::get($status->id), 'mentions' => StatusMentionService::get($status->id),
'tags' => [], 'tags' => [],
'pf_type' => $status->type ?? $status->setType(), 'pf_type' => $status->type ?? $status->setType(),