From 9314bd7b5b20b2061fa5a27c55807da47d727f4d Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 18 Feb 2019 09:59:59 -0800 Subject: [PATCH] modules/federation/query_auth: Stub a NOT_IMPLEMENTED for now because synapse doesn't use this. --- modules/federation/query_auth.cc | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/modules/federation/query_auth.cc b/modules/federation/query_auth.cc index beb95ce4d..a82a17563 100644 --- a/modules/federation/query_auth.cc +++ b/modules/federation/query_auth.cc @@ -65,8 +65,27 @@ post__query_auth(client &client, url::decode(event_id, request.parv[1]) }; + const json::array &auth_chain + { + request.at("auth_chain") + }; + + const json::array &missing + { + request["missing"] + }; + + const json::object &rejects + { + request["rejects"] + }; + + // + // This method appears to be unused by synapse. + // + return resource::response { - client, http::NOT_FOUND + client, http::NOT_IMPLEMENTED }; }