pl-api: Akkoma doesn't actually have this feature
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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,
|
||||
),
|
||||
|
||||
@ -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,
|
||||
]),
|
||||
|
||||
Reference in New Issue
Block a user