From 6057de305e9bd7100f82746958e2b5b7b779bc4d Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 25 Mar 2022 02:46:12 -0600 Subject: [PATCH 1/2] Update ApiV1Controller, remove pinned attribute to match MastoAPI Status entity --- app/Http/Controllers/Api/ApiV1Controller.php | 1 - app/Transformer/Api/Mastodon/v1/StatusTransformer.php | 1 - app/Transformer/Api/StatusStatelessTransformer.php | 1 - 3 files changed, 3 deletions(-) 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(), From 9a9bbbc8bbe9fe40a68df0fb60da8c7ef833763d Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 25 Mar 2022 02:46:31 -0600 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2dbb78f5..2d97b868f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -109,6 +109,7 @@ - Updated ApiV1Controller, increase limits from 80 to 100. ([15eccd44](https://github.com/pixelfed/pixelfed/commit/15eccd44)) - Updated ApiV1Controller, fix accountStatusesById endpoint. ([db7b1af3](https://github.com/pixelfed/pixelfed/commit/db7b1af3)) - Updated ApiV1Controller, update statusCreate entity. ([a84ab6ea](https://github.com/pixelfed/pixelfed/commit/a84ab6ea)) +- Updated ApiV1Controller, remove pinned attribute to match MastoAPI Status entity. ([6057de30](https://github.com/pixelfed/pixelfed/commit/6057de30)) - ([](https://github.com/pixelfed/pixelfed/commit/)) ## [v0.11.2 (2022-01-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.1...v0.11.2)