Browse Source

Change the result that webfinger returns from the first alias

to the last because mastodon doesn't like

https://my.instance/@me but https://my.instance/users/me
pull/195/head
Michael Demetriou 2 years ago
parent
commit
e5bbd45b49
  1. 2
      webfinger.go

2
webfinger.go

@ -108,5 +108,5 @@ func RemoteLookup(handle string) string {
aliases := result["aliases"].([]interface{})
return aliases[0].(string)
return aliases[len(aliases)-1].(string)
}
Loading…
Cancel
Save