returnnil,fmt.Errorf("FingerRemoteAccount: error getting transport for username %s while dereferencing @%s@%s: %s",requestingUsername,targetUsername,targetDomain,err)
returnnil,fmt.Errorf("FingerRemoteAccount: error doing request on behalf of username %s while dereferencing @%s@%s: %s",requestingUsername,targetUsername,targetDomain,err)
returnnil,fmt.Errorf("FingerRemoteAccount: could not unmarshal server response as WebfingerAccountResponse on behalf of username %s while dereferencing @%s@%s: %s",requestingUsername,targetUsername,targetDomain,err)
}
iflen(resp.Links)==0{
returnnil,fmt.Errorf("FingerRemoteAccount: no links found in webfinger response %s",string(b))
}
// look through the links for the first one that matches "application/activity+json", this is what we need