From 6971f4e40f6483b3aa461b5c7ad239d0813d6206 Mon Sep 17 00:00:00 2001
From: Nikita Karamov
Date: Sat, 26 Aug 2023 17:15:27 +0200
Subject: [PATCH] Add Fedibird 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 434836c..b67c616 100644
--- a/src/pages/api/detect/[domain].ts
+++ b/src/pages/api/detect/[domain].ts
@@ -36,6 +36,7 @@ const pleromaSettings = {
};
const PROJECTS: Map = new Map()
+ .set(FediverseProject.Fedibird, mastodonSettings)
.set(FediverseProject.Hometown, mastodonSettings)
.set(FediverseProject.Mastodon, mastodonSettings)
.set(FediverseProject.Misskey, misskeySettings)
diff --git a/src/pages/index.astro b/src/pages/index.astro
index b8b2bba..c4adf5f 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -36,7 +36,7 @@ const prefilledInstance = searchParameters.get("instance");
Supported projects:
- - Mastodon
+ - Mastodon (incl. Hometown and Fedibird)
-
Pleroma (incl. Akkoma) (new!)
diff --git a/src/scripts/constants.ts b/src/scripts/constants.ts
index b868b08..3c217b9 100644
--- a/src/scripts/constants.ts
+++ b/src/scripts/constants.ts
@@ -6,6 +6,7 @@
*/
export enum FediverseProject {
Akkoma = "akkoma",
+ Fedibird = "fedibird",
Friendica = "friendica",
GNUSocial = "gnusocial",
Hometown = "hometown",