pl-api: Akkoma doesn't actually have this feature

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-11-28 09:30:50 +01:00
parent ad33b32fdb
commit a1fa8a5b12
2 changed files with 1 additions and 2 deletions

View File

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

View File

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