From 8e7be4467ac67d3c272e7fe805730500c279686c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Wed, 23 Oct 2024 16:32:37 +0200 Subject: [PATCH] pl-api: Update feature definitions for firefish 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/pl-api/lib/features.ts b/packages/pl-api/lib/features.ts index 82058cff3..703ac38ad 100644 --- a/packages/pl-api/lib/features.ts +++ b/packages/pl-api/lib/features.ts @@ -202,6 +202,7 @@ const getFeatures = (instance: Instance) => { * @see {@link https://docs.joinmastodon.org/methods/announcements/} */ announcements: any([ + v.software === FIREFISH, v.software === ICESHRIMP, v.software === MASTODON, v.software === PLEROMA, @@ -397,6 +398,7 @@ const getFeatures = (instance: Instance) => { * @see PUT /api/v1/statuses/:id */ editStatuses: any([ + v.software === FIREFISH, v.software === FRIENDICA && gte(v.version, '2022.12.0'), v.software === ICESHRIMP, v.software === MASTODON, @@ -430,6 +432,7 @@ const getFeatures = (instance: Instance) => { * @see POST /v1/statuses/:id/unreact/:emoji */ emojiReacts: any([ + v.software === FIREFISH, v.software === MITRA && gte(v.version, '2.21.0'), v.software === PLEROMA, instance ? instance.configuration.reactions.max_reactions > 0 : false, @@ -541,6 +544,7 @@ const getFeatures = (instance: Instance) => { * @see PATCH /api/v1/accounts/update_credentials */ followRequests: any([ + v.software === FIREFISH, v.software === GOTOSOCIAL, v.software === MASTODON, v.software === MITRA, @@ -651,6 +655,7 @@ const getFeatures = (instance: Instance) => { * @see {@link https://docs.joinmastodon.org/methods/instance/#v2} */ instanceV2: any([ + v.software === FIREFISH, v.software === GOTOSOCIAL, v.software === MASTODON && gte(v.compatVersion, '4.0.0'), v.software === PLEROMA && v.build === REBASED && gte(v.version, '2.6.0'), @@ -745,6 +750,7 @@ const getFeatures = (instance: Instance) => { * @see POST /api/v2/media */ mediaV2: any([ + v.software === FIREFISH, v.software === ICESHRIMP, v.software === MASTODON, v.software === MITRA, @@ -822,6 +828,7 @@ const getFeatures = (instance: Instance) => { * @see GET /api/v1/notifications */ notificationsIncludeTypes: any([ + v.software === FIREFISH, v.software === ICESHRIMP, v.software === MASTODON, v.software === PLEROMA && gte(v.version, '2.5.0'), @@ -1018,6 +1025,7 @@ const getFeatures = (instance: Instance) => { * @see {@link https://docs.joinmastodon.org/methods/scheduled_statuses/} */ scheduledStatuses: any([ + v.software === FIREFISH, v.software === FRIENDICA, v.software === MASTODON, v.software === PLEROMA, @@ -1140,6 +1148,7 @@ const getFeatures = (instance: Instance) => { */ trendingStatuses: any([ v.software === DITTO, + v.software === FIREFISH, v.software === FRIENDICA && gte(v.version, '2022.12.0'), v.software === ICESHRIMP, v.software === MASTODON, @@ -1151,6 +1160,7 @@ const getFeatures = (instance: Instance) => { */ trends: any([ v.software === DITTO, + v.software === FIREFISH, v.software === FRIENDICA && gte(v.version, '2022.12.0'), v.software === ICESHRIMP, v.software === MASTODON,