diff options
author | Erik Johnston <erik@matrix.org> | 2016-08-10 11:55:15 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-08-10 13:16:58 +0100 |
commit | 11fdfaf03b67810f3d289241f772d3177e3c6b7e (patch) | |
tree | 86d52be64cb563a2cdf7c7a0f5f9a4b4bc20b099 | |
parent | Store if we fail to fetch an event from a destination (diff) | |
download | synapse-11fdfaf03b67810f3d289241f772d3177e3c6b7e.tar.xz |
Only resign our own events
-rw-r--r-- | synapse/handlers/federation.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 618cb53629..55d11122ba 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -1093,16 +1093,17 @@ class FederationHandler(BaseHandler): ) if event: - # FIXME: This is a temporary work around where we occasionally - # return events slightly differently than when they were - # originally signed - event.signatures.update( - compute_event_signature( - event, - self.hs.hostname, - self.hs.config.signing_key[0] + if self.hs.is_mine_id(event.event_id): + # FIXME: This is a temporary work around where we occasionally + # return events slightly differently than when they were + # originally signed + event.signatures.update( + compute_event_signature( + event, + self.hs.hostname, + self.hs.config.signing_key[0] + ) ) - ) if do_auth: in_room = yield self.auth.check_host_in_room( |