From 2afb26fad338cbb41e2912d3b1cfa404c28ec91f Mon Sep 17 00:00:00 2001 From: Derek Meer Date: Fri, 3 Aug 2018 19:04:09 -0700 Subject: [PATCH] fix lint --- src/github.com/matrix-org/dendrite/appservice/routing/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 3fa1c392b..1924c49c1 100644 --- a/src/github.com/matrix-org/dendrite/appservice/routing/user.go +++ b/src/github.com/matrix-org/dendrite/appservice/routing/user.go @@ -17,7 +17,7 @@ type URIToUIDResponse struct { UserID string `json:"user_id"` } -const PathPrefixUnstableThirdPartyUser = "/_matrix/app/unstable/thirdparty/user/" +const pathPrefixUnstableThirdPartyUser = "/_matrix/app/unstable/thirdparty/user/" // URIToUID implements `/_matrix/app/r0/user?uri={url_encoded_uri}`, which // enables users to contact App Service users directly by taking an encoded @@ -43,7 +43,7 @@ func URIToUID(req *http.Request, cfg config.Dendrite) util.JSONResponse { // call the applicable application services in parallel go func(as config.ApplicationService, ids *[]string) { defer wg.Done() - reqURL, err := url.Parse(as.URL + PathPrefixUnstableThirdPartyUser + as.ID + + reqURL, err := url.Parse(as.URL + pathPrefixUnstableThirdPartyUser + as.ID + "?access_token=" + as.HSToken + "&fields=" + uri) if err != nil {