From 2a131a84070facd6054110d4e3e513a0895016f0 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 14 Feb 2023 12:35:27 -0600 Subject: [PATCH] Add "unreleased" build to features for tests --- app/soapbox/utils/features.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/soapbox/utils/features.ts b/app/soapbox/utils/features.ts index 20bbc83fe..69ae78fcd 100644 --- a/app/soapbox/utils/features.ts +++ b/app/soapbox/utils/features.ts @@ -82,6 +82,9 @@ export const GLITCH = 'glitch'; // NOTE: Rebased is named 'soapbox' for legacy reasons. export const REBASED = 'soapbox'; +/** Backend name reserved only for tests. */ +export const UNRELEASED = 'unreleased'; + /** Parse features for the given instance */ const getInstanceFeatures = (instance: Instance) => { const v = parseVersion(instance.version); @@ -251,7 +254,7 @@ const getInstanceFeatures = (instance: Instance) => { /** * Ability to add reactions to chat messages. */ - chatEmojiReactions: false, // v.software === TRUTHSOCIAL, + chatEmojiReactions: v.software === TRUTHSOCIAL && v.build === UNRELEASED, /** * Pleroma chats API.