mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 10:02:25 -05:00
fix the annoying infinite handshake bug (tested) (#69)
This commit is contained in:
parent
b71bbc86a7
commit
3e6aef00b2
4 changed files with 125 additions and 29 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue