From bdaf94e7fe8d61556fba773670cc190fb68dbf4c Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Mon, 19 Jul 2021 12:35:04 +0100 Subject: [PATCH] s/join/gmsl.json/ --- federationapi/routing/join.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federationapi/routing/join.go b/federationapi/routing/join.go index 0fdaeb1fe..f0e1ae0d6 100644 --- a/federationapi/routing/join.go +++ b/federationapi/routing/join.go @@ -237,7 +237,7 @@ func SendJoin( JSON: jsonerror.BadJSON("missing content.membership key"), } } - if membership != "join" { + if membership != gomatrixserverlib.Join { return util.JSONResponse{ Code: http.StatusBadRequest, JSON: jsonerror.BadJSON("membership must be 'join'"),