fix the annoying infinite handshake bug (tested)

This commit is contained in:
tsmethurst 2021-06-27 11:41:20 +02:00
commit 7330f3cca9
4 changed files with 125 additions and 29 deletions

View file

@ -213,6 +213,8 @@ func (f *federator) AuthenticateFederatedRequest(username string, r *http.Reques
}
func (f *federator) DereferenceRemoteAccount(username string, remoteAccountID *url.URL) (typeutils.Accountable, error) {
f.startHandshake(username, remoteAccountID)
defer f.stopHandshake(username, remoteAccountID)
transport, err := f.GetTransportForUser(username)
if err != nil {