From b5b089ac7dba79b9a63856badf2911c24d963a22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Wed, 29 Dec 2021 23:54:16 +0100 Subject: [PATCH] Use /lookup for username availability with Pleroma MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/utils/features.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/soapbox/utils/features.js b/app/soapbox/utils/features.js index 0cb0b93e7..6447f53f7 100644 --- a/app/soapbox/utils/features.js +++ b/app/soapbox/utils/features.js @@ -70,7 +70,10 @@ export const getFeatures = createSelector([ v.software === MASTODON && gte(v.compatVersion, '3.0.0'), features.includes('profile_directory'), ]), - accountLookup: v.software === MASTODON && gte(v.version, '3.4.0'), + accountLookup: any([ + v.software === MASTODON && gte(v.compatVersion, '3.4.0'), + v.software === PLEROMA && gte(v.version, '2.4.50'), + ]), }; });