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['language'] = 'en';
$res['bookmarked'] = false;
$res['pinned'] = false;
$res['card'] = null;
return $this->json($res);
}

View file

@ -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' => [

View file

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