Add a const for glitch-soc
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
1f4d71aeb2
commit
f2671da8b4
1 changed files with 7 additions and 1 deletions
|
@ -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,
|
||||
]),
|
||||
|
||||
|
|
Loading…
Reference in a new issue