From fd5877347291fc7f43e459967ab755f387b934ce Mon Sep 17 00:00:00 2001 From: erin Date: Thu, 15 Jun 2023 18:29:49 -0400 Subject: [PATCH] fix: treat 'gotosocial' software as mastodon --- backend/db/fediverse.go | 2 +- backend/routes/auth/fediverse.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/db/fediverse.go b/backend/db/fediverse.go index d319cad..eeadd79 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" + return f.InstanceType == "mastodon" || f.InstanceType == "pleroma" || f.InstanceType == "akkoma" || f.InstanceType == "pixelfed" || f.InstanceType == "gotosocial" } func (f FediverseApp) Misskey() bool { diff --git a/backend/routes/auth/fediverse.go b/backend/routes/auth/fediverse.go index 0f0511c..b3f2f62 100644 --- a/backend/routes/auth/fediverse.go +++ b/backend/routes/auth/fediverse.go @@ -67,7 +67,7 @@ func (s *Server) noAppFediverseURL(ctx context.Context, w http.ResponseWriter, r switch softwareName { case "misskey", "foundkey", "calckey": return s.noAppMisskeyURL(ctx, w, r, softwareName, instance) - case "mastodon", "pleroma", "akkoma", "pixelfed": + case "mastodon", "pleroma", "akkoma", "pixelfed", "gotosocial": case "glitchcafe": // plural.cafe (potentially other instances too?) runs Mastodon but changes the software name // changing it back to mastodon here for consistency