Enable custom emoji reacts on custom Pleroma forks

This commit is contained in:
Alex Gleason 2023-03-19 17:53:14 -05:00
parent 5c7c0ea1dd
commit 47561e5c01
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 5 additions and 1 deletions

View File

@ -327,7 +327,11 @@ const getInstanceFeatures = (instance: Instance) => {
/**
* Ability to add non-standard reactions to a status.
*/
customEmojiReacts: v.software === PLEROMA && gte(v.version, '2.5.50'),
customEmojiReacts: any([
features.includes('pleroma_custom_emoji_reactions'),
features.includes('custom_emoji_reactions'),
v.software === PLEROMA && gte(v.version, '2.5.50'),
]),
/**
* Legacy DMs timeline where messages are displayed chronologically without groupings.