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
This commit is contained in:
parent
3eb638b14a
commit
e5bbd45b49
|
@ -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…
Reference in New Issue