diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index 40deed572..ccc9d6025 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -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); } diff --git a/app/Transformer/Api/Mastodon/v1/StatusTransformer.php b/app/Transformer/Api/Mastodon/v1/StatusTransformer.php index a30d998ee..a9196249c 100644 --- a/app/Transformer/Api/Mastodon/v1/StatusTransformer.php +++ b/app/Transformer/Api/Mastodon/v1/StatusTransformer.php @@ -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' => [ diff --git a/app/Transformer/Api/StatusStatelessTransformer.php b/app/Transformer/Api/StatusStatelessTransformer.php index 8f56bf75b..58ed41f40 100644 --- a/app/Transformer/Api/StatusStatelessTransformer.php +++ b/app/Transformer/Api/StatusStatelessTransformer.php @@ -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(),