fix: treat 'glitchcafe' software as mastodon

This commit is contained in:
Sam 2023-06-15 17:23:24 +02:00
parent 0fb6ac64a6
commit 0a012d75af
No known key found for this signature in database
GPG key ID: B4EF20DDE721CAA1

View file

@ -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}
}