From 8439c8835da50f0adc064bbf0e5e2546226fe2b0 Mon Sep 17 00:00:00 2001
From: Nikita Karamov
Date: Sat, 26 Aug 2023 17:33:36 +0200
Subject: [PATCH] Add GlitchCafe support
---
src/pages/api/detect/[domain].ts | 1 +
src/pages/index.astro | 2 +-
src/scripts/constants.ts | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/pages/api/detect/[domain].ts b/src/pages/api/detect/[domain].ts
index a4fe371..a3f83d3 100644
--- a/src/pages/api/detect/[domain].ts
+++ b/src/pages/api/detect/[domain].ts
@@ -38,6 +38,7 @@ const pleromaSettings = {
const PROJECTS: Map = new Map()
.set(FediverseProject.Mastodon, mastodonSettings)
.set(FediverseProject.Fedibird, mastodonSettings)
+ .set(FediverseProject.GlitchCafe, mastodonSettings)
.set(FediverseProject.Hometown, mastodonSettings)
.set(FediverseProject.Misskey, misskeySettings)
.set(FediverseProject.Calckey, misskeySettings)
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 153f2b0..3990fd9 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -36,7 +36,7 @@ const prefilledInstance = searchParameters.get("instance");
Supported projects:
- - Mastodon (incl. Hometown and Fedibird)
+ - Mastodon (incl. Hometown, Fedibird, GlitchCafé)
-
Pleroma (incl. Akkoma) (new!)
diff --git a/src/scripts/constants.ts b/src/scripts/constants.ts
index dce32d0..ac67ee5 100644
--- a/src/scripts/constants.ts
+++ b/src/scripts/constants.ts
@@ -7,6 +7,7 @@
export enum FediverseProject {
Akkoma = "akkoma",
Calckey = "calckey",
+ GlitchCafe = "glitchcafe",
Fedibird = "fedibird",
Firefish = "firefish",
FoundKey = "foundkey",