diff --git a/src/github.com/matrix-org/dendrite/appservice/routing/user.go b/src/github.com/matrix-org/dendrite/appservice/routing/user.go index f01f76b05..d2e02e94e 100644 --- a/src/github.com/matrix-org/dendrite/appservice/routing/user.go +++ b/src/github.com/matrix-org/dendrite/appservice/routing/user.go @@ -19,6 +19,13 @@ type URIToUIDResponse struct { func URIToUID(req *http.Request, cfg config.Dendrite) util.JSONResponse { // TODO: Implement homeserver := cfg.Matrix.ServerName + uri := req.URL.Query().Get("uri") + if uri == "" { + return util.JSONResponse{ + Code: http.StatusOK, + JSON: nil, + } + } return util.JSONResponse{ Code: http.StatusOK, JSON: nil,