feat: misskey oauth (fixes #26)

This commit is contained in:
Sam 2023-03-25 03:27:40 +01:00
parent ef6aa3ee5f
commit 987ff47704
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
6 changed files with 516 additions and 10 deletions

View file

@ -48,7 +48,9 @@ func (s *Server) noAppFediverseURL(ctx context.Context, w http.ResponseWriter, r
}
switch softwareName {
case "mastodon", "pleroma", "akkoma", "pixelfed", "calckey":
case "misskey", "foundkey", "calckey":
return s.noAppMisskeyURL(ctx, w, r, softwareName, instance)
case "mastodon", "pleroma", "akkoma", "pixelfed":
default:
// sorry, misskey :( TODO: support misskey
return server.APIError{Code: server.ErrUnsupportedInstance}