From b29242d2005629ebf901da2fac17d5f4da522a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Fri, 6 Sep 2024 09:11:23 +0200 Subject: [PATCH] pl-api: support avatar descriptions on pl 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/pl-api/lib/features.ts b/packages/pl-api/lib/features.ts index 3b0da4188..bbf8a6978 100644 --- a/packages/pl-api/lib/features.ts +++ b/packages/pl-api/lib/features.ts @@ -114,7 +114,10 @@ const getFeatures = (instance?: Instance) => { * Ability to set description of profile avatar and header. * @see PATCH /api/v1/accounts/update_credentials */ - accountAvatarDescription: v.software === GOTOSOCIAL && gte(v.version, '0.16.1'), + accountAvatarDescription: any([ + v.software === GOTOSOCIAL && gte(v.version, '0.16.1'), + v.software === PLEROMA && v.build === PL, + ]), /** * Pleroma backups.