Merge branch 'events-features' into 'develop'

Gate events with `features.includes('events')`

See merge request soapbox-pub/soapbox!2036
environments/review-develop-3zknud/deployments/1852
Alex Gleason 2022-12-24 20:44:58 +00:00
commit 27ad8dee64
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -357,7 +357,7 @@ const getInstanceFeatures = (instance: Instance) => {
* @see GET /api/v1/pleroma/events/:id/ics
* @see GET /api/v1/pleroma/search/location
*/
events: v.software === PLEROMA && v.build === REBASED && gte(v.version, '2.4.50'),
events: features.includes('events'),
/**
* Ability to address recipients of a status explicitly (with `to`).