pl-api: Update Mastodon API basing on mastodon/documentation

Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
Nicole Mikołajczyk
2025-05-27 20:36:13 +02:00
parent 3ef348191b
commit 67b8319146
11 changed files with 91 additions and 16 deletions

View File

@ -585,6 +585,11 @@ const getFeatures = (instance: Instance) => {
*/
deleteAccountWithoutPassword: v.software === MITRA && gte(v.version, '2.14.0'),
/**
* @see DELETE /api/v1/media/:id
*/
deleteMedia: instance.api_versions.mastodon >= 4,
/**
* Allow to register on a given domain
* @see GET /api/v1/pleroma/admin/domains