From f2671da8b4aa9e5521540e4c4e7b4fe0fe3c8205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Thu, 12 May 2022 20:26:36 +0200 Subject: [PATCH] Add a const for glitch-soc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/utils/features.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/soapbox/utils/features.ts b/app/soapbox/utils/features.ts index e221678f5..b75256fab 100644 --- a/app/soapbox/utils/features.ts +++ b/app/soapbox/utils/features.ts @@ -51,6 +51,12 @@ export const TRUTHSOCIAL = 'TruthSocial'; */ export const SOAPBOX = 'soapbox'; +/** + * glitch-soc, fork of Mastodon with a number of experimental features. + * @see {@link https://glitch-soc.github.io/docs/} + */ +export const GLITCH = 'glitch'; + /** Parse features for the given instance */ const getInstanceFeatures = (instance: Instance) => { const v = parseVersion(instance.version); @@ -421,7 +427,7 @@ const getInstanceFeatures = (instance: Instance) => { * @see POST /api/v1/statuses */ richText: any([ - v.software === MASTODON && v.build === 'glitch', + v.software === MASTODON && v.build === GLITCH, v.software === PLEROMA, ]),