From 8f34367d1ac40d203447f5ec268afc90d3e18427 Mon Sep 17 00:00:00 2001 From: ulith Date: Tue, 2 Apr 2024 19:13:05 +1300 Subject: [PATCH] added incestoma compatibility --- backend/db/fediverse.go | 2 +- backend/routes/v1/auth/fediverse.go | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/backend/db/fediverse.go b/backend/db/fediverse.go index 5a6bfbe..a2bc2e6 100644 --- a/backend/db/fediverse.go +++ b/backend/db/fediverse.go @@ -48,7 +48,7 @@ func (f FediverseApp) ClientConfig() *oauth2.Config { } func (f FediverseApp) MastodonCompatible() bool { - return f.InstanceType == "mastodon" || f.InstanceType == "pleroma" || f.InstanceType == "akkoma" || f.InstanceType == "pixelfed" || f.InstanceType == "gotosocial" + return f.InstanceType == "mastodon" || f.InstanceType == "pleroma" || f.InstanceType == "akkoma" || f.InstanceType == "incestoma" || f.InstanceType == "pixelfed" || f.InstanceType == "gotosocial" } func (f FediverseApp) Misskey() bool { diff --git a/backend/routes/v1/auth/fediverse.go b/backend/routes/v1/auth/fediverse.go index fa3ecec..3619a52 100644 --- a/backend/routes/v1/auth/fediverse.go +++ b/backend/routes/v1/auth/fediverse.go @@ -70,11 +70,8 @@ func (s *Server) noAppFediverseURL(ctx context.Context, w http.ResponseWriter, r fallthrough case "misskey", "foundkey", "calckey", "firefish", "sharkey": return s.noAppMisskeyURL(ctx, w, r, softwareName, instance) - case "mastodon", "pleroma", "akkoma", "pixelfed", "gotosocial": + case "mastodon", "pleroma", "akkoma", "incestoma", "pixelfed", "gotosocial": case "glitchcafe", "hometown": - // plural.cafe (potentially other instances too?) runs Mastodon but changes the software name - // Hometown is a lightweight fork of Mastodon so we can just treat it the same - // changing it back to mastodon here for consistency softwareName = "mastodon" default: return server.APIError{Code: server.ErrUnsupportedInstance}