Merge branch 'reactions' into 'main'

features: enable reactions when "pleroma_emoji_reactions" feature is present

See merge request soapbox-pub/soapbox!3033
This commit is contained in:
Alex Gleason 2024-05-23 16:54:55 +00:00
commit 8578843a93
1 changed files with 4 additions and 1 deletions

View File

@ -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'),
features.includes('pleroma_emoji_reactions'),
]),
/**
* Ability to add emoji reactions to a status available in Mastodon forks.