From f74b2656897ff5d2fc4d8b6ccc66497196a4dc4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Tue, 24 Jun 2025 21:57:59 +0200 Subject: [PATCH] pl-api: reorder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-api/lib/features.ts | 50 ++++++++++++++++----------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/packages/pl-api/lib/features.ts b/packages/pl-api/lib/features.ts index 683d32470..fbeaa6d18 100644 --- a/packages/pl-api/lib/features.ts +++ b/packages/pl-api/lib/features.ts @@ -469,6 +469,31 @@ const getFeatures = (instance: Instance) => { bubbleTimelineStreaming: v.software === ICESHRIMP_NET, + /** + * @see POST /api/v1/user/email_change + */ + changeEmail: any([ + v.software === AKKOMA, + v.software === GOTOSOCIAL && gte(v.version, '0.16.0'), + v.software === PLEROMA, + ]), + + /** + * @see POST /api/v1/user/password_change + * @see POST /api/v1/settings/change_password + * @see POST /api/v1.1/accounts/change-password + * @see POST /api/iceshrimp/auth/change-password + * @see POST /api/pleroma/change_password + */ + changePassword: any([ + v.software === AKKOMA, + v.software === GOTOSOCIAL, + v.software === ICESHRIMP_NET, + v.software === MITRA, + v.software === PIXELFED, + v.software === PLEROMA, + ]), + /** * Pleroma chats API. * @see {@link https://docs.pleroma.social/backend/development/API/chats/} @@ -1554,31 +1579,6 @@ const getFeatures = (instance: Instance) => { v.software === PLEROMA, ]), - /** - * @see POST /api/v1/user/email_change - */ - changeEmail: any([ - v.software === AKKOMA, - v.software === GOTOSOCIAL && gte(v.version, '0.16.0'), - v.software === PLEROMA, - ]), - - /** - * @see POST /api/v1/user/password_change - * @see POST /api/v1/settings/change_password - * @see POST /api/v1.1/accounts/change-password - * @see POST /api/iceshrimp/auth/change-password - * @see POST /api/pleroma/change_password - */ - changePassword: any([ - v.software === AKKOMA, - v.software === GOTOSOCIAL, - v.software === ICESHRIMP_NET, - v.software === MITRA, - v.software === PIXELFED, - v.software === PLEROMA, - ]), - /** * Ability to manage account sessions. * @see GET /api/oauth_tokens.json