From c907e10138c65667fe8dbfd2e213e90180645345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Thu, 21 Nov 2024 21:11:49 +0100 Subject: [PATCH] pl-api: update feature definitions for Ditto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-api/lib/features.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/pl-api/lib/features.ts b/packages/pl-api/lib/features.ts index 96a7ef6f4..f0a9b55db 100644 --- a/packages/pl-api/lib/features.ts +++ b/packages/pl-api/lib/features.ts @@ -1001,12 +1001,13 @@ const getFeatures = (instance: Instance) => { * @see PATCH /api/v1/accounts/update_credentials */ profileFields: any([ + v.software === DITTO, + v.software === GOTOSOCIAL, v.software === ICESHRIMP, v.software === MASTODON, + v.software === MITRA, v.software === PLEROMA, v.software === TAKAHE && gte(v.version, '0.7.0'), - v.software === MITRA, - v.software === GOTOSOCIAL, ]), /** @@ -1121,10 +1122,11 @@ const getFeatures = (instance: Instance) => { * @see POST /api/v2/search */ searchFromAccount: any([ + v.software === DITTO, + v.software === GOTOSOCIAL, v.software === ICESHRIMP, v.software === MASTODON, v.software === PLEROMA, - v.software === GOTOSOCIAL, ]), /**