From 98bdd79da57c350c795853d2fedc6f548a88e028 Mon Sep 17 00:00:00 2001 From: mkljczk Date: Wed, 25 Dec 2024 15:39:16 +0100 Subject: [PATCH] pl-api: enable followed tags on pixelfed Signed-off-by: mkljczk --- packages/pl-api/lib/features.ts | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/packages/pl-api/lib/features.ts b/packages/pl-api/lib/features.ts index 2faa5347f..d5b0f8f8f 100644 --- a/packages/pl-api/lib/features.ts +++ b/packages/pl-api/lib/features.ts @@ -620,6 +620,19 @@ const getFeatures = (instance: Instance) => { */ // followAccountLanguages: any([]), + /** + * Ability to list followed hashtags. + * @see GET /api/v1/followed_tags + */ + followedHashtagsList: any([ + v.software === GOTOSOCIAL && gte(v.version, '0.17.0'), + v.software === MASTODON && gte(v.compatVersion, '4.1.0'), + v.software === PIXELFED, + v.software === PLEROMA && v.build === AKKOMA, + v.software === PLEROMA && v.build === PL, + v.software === TAKAHE && gte(v.version, '0.9.0'), + ]), + /** * Ability to follow hashtags. * @see POST /api/v1/tags/:name/follow @@ -628,6 +641,7 @@ const getFeatures = (instance: Instance) => { followHashtags: any([ v.software === GOTOSOCIAL && gte(v.version, '0.17.0'), v.software === MASTODON && gte(v.compatVersion, '4.0.0'), + v.software === PIXELFED, v.software === PLEROMA && v.build === AKKOMA, v.software === PLEROMA && v.build === PL, v.software === TAKAHE && gte(v.version, '0.9.0'), @@ -646,18 +660,6 @@ const getFeatures = (instance: Instance) => { v.software === TOKI, ]), - /** - * Ability to list followed hashtags. - * @see GET /api/v1/followed_tags - */ - followedHashtagsList: any([ - v.software === GOTOSOCIAL && gte(v.version, '0.17.0'), - v.software === MASTODON && gte(v.compatVersion, '4.1.0'), - v.software === PLEROMA && v.build === AKKOMA, - v.software === PLEROMA && v.build === PL, - v.software === TAKAHE && gte(v.version, '0.9.0'), - ]), - /** * Whether client settings can be retrieved from the API. * @see GET /api/pleroma/frontend_configurations