From 02a4124b822e753dd01e15ecac80004c54792de6 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 22 May 2024 21:19:53 -0500 Subject: [PATCH 1/2] Enable reactions on Ditto --- src/utils/features.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/features.ts b/src/utils/features.ts index 7c44458a4..68b264428 100644 --- a/src/utils/features.ts +++ b/src/utils/features.ts @@ -463,7 +463,10 @@ const getInstanceFeatures = (instance: Instance) => { * @see GET /api/v1/pleroma/statuses/:id/reactions/:emoji? * @see DELETE /api/v1/pleroma/statuses/:id/reactions/:emoji */ - emojiReacts: v.software === PLEROMA && gte(v.version, '2.0.0'), + emojiReacts: any([ + v.software === PLEROMA && gte(v.version, '2.0.0'), + v.software === DITTO, + ]), /** * Ability to add emoji reactions to a status available in Mastodon forks. From 60296ef7519faa663c6b4897a95c4efc8cdc2c66 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 23 May 2024 11:43:09 -0500 Subject: [PATCH 2/2] features: enable reactions when "pleroma_emoji_reactions" feature is present --- src/utils/features.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/features.ts b/src/utils/features.ts index 68b264428..d294f7d1f 100644 --- a/src/utils/features.ts +++ b/src/utils/features.ts @@ -465,7 +465,7 @@ const getInstanceFeatures = (instance: Instance) => { */ emojiReacts: any([ v.software === PLEROMA && gte(v.version, '2.0.0'), - v.software === DITTO, + features.includes('pleroma_emoji_reactions'), ]), /**