diff --git a/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go b/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go index 3186da9b1..c67f81124 100644 --- a/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go +++ b/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go @@ -79,10 +79,9 @@ func Setup( }, )) - v1fedmux.Handle("/3pid/onbind", common.MakeFedAPI( - "3pid_onbind", cfg.Matrix.ServerName, keys, - func(httpReq *http.Request, request *gomatrixserverlib.FederationRequest) util.JSONResponse { - return writers.CreateInvitesFrom3PIDInvites(httpReq, query, cfg, producer, federation) + v1fedmux.Handle("/3pid/onbind", common.MakeAPI("3pid_onbind", + func(req *http.Request) util.JSONResponse { + return writers.CreateInvitesFrom3PIDInvites(req, query, cfg, producer, federation) }, ))