From 81bb8b933a26f712148e9e5c17b38e19722b11ee Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 8 Feb 2023 11:57:23 -0600 Subject: [PATCH] Invert features.emojiReactsRGI --- app/soapbox/actions/soapbox.ts | 4 ++-- app/soapbox/utils/features.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/soapbox/actions/soapbox.ts b/app/soapbox/actions/soapbox.ts index 725ff1ae31..7909971998 100644 --- a/app/soapbox/actions/soapbox.ts +++ b/app/soapbox/actions/soapbox.ts @@ -32,8 +32,8 @@ const getSoapboxConfig = createSelector([ } // If RGI reacts aren't supported, strip VS16s - // // https://git.pleroma.social/pleroma/pleroma/-/issues/2355 - if (!features.emojiReactsRGI) { + // https://git.pleroma.social/pleroma/pleroma/-/issues/2355 + if (features.emojiReactsNonRGI) { soapboxConfig.set('allowedEmoji', soapboxConfig.allowedEmoji.map(removeVS16s)); } }); diff --git a/app/soapbox/utils/features.ts b/app/soapbox/utils/features.ts index b343761fb2..c41059b8c2 100644 --- a/app/soapbox/utils/features.ts +++ b/app/soapbox/utils/features.ts @@ -374,10 +374,10 @@ const getInstanceFeatures = (instance: Instance) => { emojiReacts: v.software === PLEROMA && gte(v.version, '2.0.0'), /** - * The backend allows only RGI ("Recommended for General Interchange") emoji reactions. + * The backend allows only non-RGI ("Recommended for General Interchange") emoji reactions. * @see PUT /api/v1/pleroma/statuses/:id/reactions/:emoji */ - emojiReactsRGI: v.software === PLEROMA && gte(v.version, '2.2.49'), + emojiReactsNonRGI: v.software === PLEROMA && lt(v.version, '2.2.49'), /** * Sign in with an Ethereum wallet.