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 5 years ago
parent 3eb638b14a
commit e5bbd45b49
  1. 2
      webfinger.go

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

Loading…
Cancel
Save