diff --git a/federationapi/routing/join.go b/federationapi/routing/join.go index e3a16b3e..8ecc7bc9 100644 --- a/federationapi/routing/join.go +++ b/federationapi/routing/join.go @@ -160,10 +160,13 @@ func MakeJoin( if err = gomatrixserverlib.Allowed(event.Event, &provider); err != nil { if joinRules.JoinRule == gomatrixserverlib.Restricted { - return attemptMakeJoinForRestrictedMembership( + res := attemptMakeJoinForRestrictedMembership( httpReq, cfg, rsAPI, &verRes, provider, &builder, joinRules, userID, ) + j, _ := json.Marshal(res) + logrus.Info("restricted make_join response:", string(j)) + return res } return util.JSONResponse{ Code: http.StatusForbidden,