Invert features.emojiReactsRGI
This commit is contained in:
parent
dbf2e53b93
commit
81bb8b933a
2 changed files with 4 additions and 4 deletions
|
@ -32,8 +32,8 @@ const getSoapboxConfig = createSelector([
|
||||||
}
|
}
|
||||||
|
|
||||||
// If RGI reacts aren't supported, strip VS16s
|
// If RGI reacts aren't supported, strip VS16s
|
||||||
// // https://git.pleroma.social/pleroma/pleroma/-/issues/2355
|
// https://git.pleroma.social/pleroma/pleroma/-/issues/2355
|
||||||
if (!features.emojiReactsRGI) {
|
if (features.emojiReactsNonRGI) {
|
||||||
soapboxConfig.set('allowedEmoji', soapboxConfig.allowedEmoji.map(removeVS16s));
|
soapboxConfig.set('allowedEmoji', soapboxConfig.allowedEmoji.map(removeVS16s));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -374,10 +374,10 @@ const getInstanceFeatures = (instance: Instance) => {
|
||||||
emojiReacts: v.software === PLEROMA && gte(v.version, '2.0.0'),
|
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
|
* @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.
|
* Sign in with an Ethereum wallet.
|
||||||
|
|
Loading…
Reference in a new issue