Merge pull request 'fix(fediauth): treat 'gotosocial' software as mastodon' (#74) from ewin/pronouns.cc:fix/gotosocial-login into main
Reviewed-on: https://codeberg.org/pronounscc/pronouns.cc/pulls/74
This commit is contained in:
commit
7dd953ef84
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ func (f FediverseApp) ClientConfig() *oauth2.Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f FediverseApp) MastodonCompatible() bool {
|
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 {
|
func (f FediverseApp) Misskey() bool {
|
||||||
|
|
|
@ -67,7 +67,7 @@ func (s *Server) noAppFediverseURL(ctx context.Context, w http.ResponseWriter, r
|
||||||
switch softwareName {
|
switch softwareName {
|
||||||
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", "gotosocial":
|
||||||
case "glitchcafe":
|
case "glitchcafe":
|
||||||
// plural.cafe (potentially other instances too?) runs Mastodon but changes the software name
|
// plural.cafe (potentially other instances too?) runs Mastodon but changes the software name
|
||||||
// changing it back to mastodon here for consistency
|
// changing it back to mastodon here for consistency
|
||||||
|
|
Loading…
Reference in a new issue