From a1fa8a5b12b39ebee4496f6646082c0f5641ec90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Fri, 28 Nov 2025 09:30:50 +0100 Subject: [PATCH] pl-api: Akkoma doesn't actually have this feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-api/lib/client.ts | 2 +- packages/pl-api/lib/features.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/pl-api/lib/client.ts b/packages/pl-api/lib/client.ts index 2eeb08b69..c3b7f64c4 100644 --- a/packages/pl-api/lib/client.ts +++ b/packages/pl-api/lib/client.ts @@ -914,7 +914,7 @@ class PlApiClient { */ getAccountEndorsements: async (accountId: string, params?: GetAccountEndorsementsParams) => this.#paginatedGet( - `/api/v1/${[PLEROMA, AKKOMA].includes(this.features.version.software as string) ? 'pleroma/' : ''}accounts/${accountId}/endorsements`, + `/api/v1/${[PLEROMA].includes(this.features.version.software as string) ? 'pleroma/' : ''}accounts/${accountId}/endorsements`, { params }, accountSchema, ), diff --git a/packages/pl-api/lib/features.ts b/packages/pl-api/lib/features.ts index 13e05d03e..e28bad364 100644 --- a/packages/pl-api/lib/features.ts +++ b/packages/pl-api/lib/features.ts @@ -252,7 +252,6 @@ const getFeatures = (instance: Instance) => { * @see GET /api/v1/accounts/:id/endorsements */ accountEndorsements: any([ - v.software === AKKOMA, v.software === PLEROMA && gte(v.version, '2.5.0'), instance.api_versions.mastodon >= 6, ]),