pl-api: update feature definitions?

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-06-30 19:36:24 +02:00
parent 045e42003c
commit d7202ee3a1

View File

@ -1,4 +1,5 @@
import semverCoerce from 'semver/functions/coerce';
import gt from 'semver/functions/gt';
import gte from 'semver/functions/gte';
import semverParse from 'semver/functions/parse';
@ -620,6 +621,7 @@ const getFeatures = (instance: Instance) => {
*/
customEmojiReacts: any([
instance.api_versions['custom_emoji_reactions.pleroma.pl-api'] >= 1,
v.software === DITTO && gt(v.version, '1.2.0'),
v.software === MITRA && gte(v.version, '3.4.0'),
]),