fix: treat 'glitchcafe' software as mastodon
This commit is contained in:
parent
0fb6ac64a6
commit
0a012d75af
1 changed files with 4 additions and 1 deletions
|
@ -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}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue