diff options
author | Erik Johnston <erik@matrix.org> | 2015-01-30 22:53:13 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-01-30 22:53:13 +0000 |
commit | 4c0da49d7ca58774adad870da98a7e168a5be18c (patch) | |
tree | 15033d2eb15c6a16813d939b54044da668661a6b /synapse | |
parent | s/homeserver.config/homeserver.yaml/ because that's what synctl looks for. (diff) | |
download | synapse-4c0da49d7ca58774adad870da98a7e168a5be18c.tar.xz |
Resign events when we return them via /query_auth/
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/federation.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 623c54d584..8bf5a4cc11 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -741,6 +741,15 @@ class FederationHandler(BaseHandler): local_auth_chain, remote_auth_chain ) + for event in ret["auth_chain"]: + event.signatures.update( + compute_event_signature( + event, + self.hs.hostname, + self.hs.config.signing_key[0] + ) + ) + logger.debug("on_query_auth reutrning: %s", ret) defer.returnValue(ret) |