pl-api: support account endorsements on mastodon

Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
Nicole Mikołajczyk
2025-04-19 10:32:55 +02:00
parent ef52459bb3
commit 8d8babe250
3 changed files with 10 additions and 6 deletions

View File

@ -215,10 +215,12 @@ const getFeatures = (instance: Instance) => {
* @see POST /api/v1/accounts/:id/pin
* @see POST /api/v1/accounts/:id/unpin
* @see GET /api/v1/pleroma/accounts/:id/endorsements
* @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,
]),
accountIsCat: instance.api_versions['cats.pleroma.pl-api'] >= 1,