From 0a012d75af735d221b690707e540be821570e030 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 15 Jun 2023 17:23:24 +0200 Subject: [PATCH] fix: treat 'glitchcafe' software as mastodon --- backend/routes/auth/fediverse.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/routes/auth/fediverse.go b/backend/routes/auth/fediverse.go index 37a21b2..0f0511c 100644 --- a/backend/routes/auth/fediverse.go +++ b/backend/routes/auth/fediverse.go @@ -68,8 +68,11 @@ func (s *Server) noAppFediverseURL(ctx context.Context, w http.ResponseWriter, r case "misskey", "foundkey", "calckey": return s.noAppMisskeyURL(ctx, w, r, softwareName, instance) case "mastodon", "pleroma", "akkoma", "pixelfed": + case "glitchcafe": + // plural.cafe (potentially other instances too?) runs Mastodon but changes the software name + // changing it back to mastodon here for consistency + softwareName = "mastodon" default: - // sorry, misskey :( TODO: support misskey return server.APIError{Code: server.ErrUnsupportedInstance} }