From 6ac5845debfe12a92197c7e83a8db4a7fe47f54d Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 24 Dec 2022 14:42:43 -0600 Subject: [PATCH] Gate events with `features.includes('events')` --- app/soapbox/utils/features.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/utils/features.ts b/app/soapbox/utils/features.ts index 1927bde2e..deb53b0cb 100644 --- a/app/soapbox/utils/features.ts +++ b/app/soapbox/utils/features.ts @@ -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`).