aboutsummaryrefslogtreecommitdiff
path: root/clientapi/routing/aliases.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/routing/aliases.go')
-rw-r--r--clientapi/routing/aliases.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/clientapi/routing/aliases.go b/clientapi/routing/aliases.go
index 5c2df79d..87c1f9ff 100644
--- a/clientapi/routing/aliases.go
+++ b/clientapi/routing/aliases.go
@@ -19,12 +19,10 @@ import (
"fmt"
"net/http"
- "github.com/matrix-org/dendrite/clientapi/jsonerror"
"github.com/matrix-org/dendrite/roomserver/api"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/spec"
-
"github.com/matrix-org/util"
)
@@ -64,12 +62,12 @@ func GetAliases(
var queryRes api.QueryMembershipForUserResponse
if err := rsAPI.QueryMembershipForUser(req.Context(), &queryReq, &queryRes); err != nil {
util.GetLogger(req.Context()).WithError(err).Error("rsAPI.QueryMembershipsForRoom failed")
- return jsonerror.InternalServerError()
+ return spec.InternalServerError()
}
if !queryRes.IsInRoom {
return util.JSONResponse{
Code: http.StatusForbidden,
- JSON: jsonerror.Forbidden("You aren't a member of this room."),
+ JSON: spec.Forbidden("You aren't a member of this room."),
}
}
}