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
1 changed files with 4 additions and 1 deletions

View File

@ -68,8 +68,11 @@ func (s *Server) noAppFediverseURL(ctx context.Context, w http.ResponseWriter, r
case "misskey", "foundkey", "calckey": case "misskey", "foundkey", "calckey":
return s.noAppMisskeyURL(ctx, w, r, softwareName, instance) return s.noAppMisskeyURL(ctx, w, r, softwareName, instance)
case "mastodon", "pleroma", "akkoma", "pixelfed": 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: default:
// sorry, misskey :( TODO: support misskey
return server.APIError{Code: server.ErrUnsupportedInstance} return server.APIError{Code: server.ErrUnsupportedInstance}
} }