pl-api: Support GoToSocial tokens page

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk
2025-03-07 12:14:38 +01:00
parent ae5cd0ee49
commit a34bb7070d
10 changed files with 132 additions and 37 deletions

View File

@ -1267,8 +1267,14 @@ const getFeatures = (instance: Instance) => {
* Ability to manage account sessions.
* @see GET /api/oauth_tokens.json
* @see DELETE /api/oauth_tokens/:id
* @see GET /api/v1/tokens
* @see GET /api/v1/tokens/:id
* @see POST /api/v1/tokens/:id/invalidate
*/
sessions: v.software === PLEROMA,
sessions: any([
v.software === PLEROMA,
v.software === GOTOSOCIAL && gte(v.version, '0.18.2'),
]),
/**
* Can store client settings in the database.