summaryrefslogtreecommitdiff
path: root/internal/federation/authenticate.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2025-01-28 20:22:23 +0000
committerLibravatar GitHub <noreply@github.com>2025-01-28 20:22:23 +0000
commit61141ac2324fd73221f8301ba3805c051bc99fe2 (patch)
treeb05d8cd260a18d174dbad5037b9de8bde7a126a5 /internal/federation/authenticate.go
parent[bugfix] Allow processing null ID emojis (#3702) (diff)
downloadgotosocial-61141ac2324fd73221f8301ba3805c051bc99fe2.tar.xz
[chore] remove type switch in Create() and instead move to FederatedCallbacks() (#3697)
* remove type switch in Create() and instead move to FederatedCallbacks() * add missing (my bad!) federating wrapped callbacks behaviour * add missing license header :innocent: * fix create flag test to use correct function
Diffstat (limited to 'internal/federation/authenticate.go')
-rw-r--r--internal/federation/authenticate.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/federation/authenticate.go b/internal/federation/authenticate.go
index e9263d43c..c06b8e72b 100644
--- a/internal/federation/authenticate.go
+++ b/internal/federation/authenticate.go
@@ -404,7 +404,8 @@ func (f *Federator) callForPubKey(
pubKeyID *url.URL,
) ([]byte, gtserror.WithCode) {
// Use a transport to dereference the remote.
- trans, err := f.transportController.NewTransportForUsername(
+ trans, err := f.transport.NewTransportForUsername(
+
// We're on a hot path: don't retry if req fails.
gtscontext.SetFastFail(ctx),
requestedUsername,