mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-09-08 18:38:22 +00:00
Only re-sign our own events
This commit is contained in:
parent
f1073ad43d
commit
2884712ca7
@ -193,13 +193,16 @@ class FederationServer(FederationBase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
for event in auth_chain:
|
for event in auth_chain:
|
||||||
event.signatures.update(
|
# We sign these again because there was a bug where we
|
||||||
compute_event_signature(
|
# incorrectly signed things the first time round
|
||||||
event,
|
if self.hs.is_mine_id(event.event_id):
|
||||||
self.hs.hostname,
|
event.signatures.update(
|
||||||
self.hs.config.signing_key[0]
|
compute_event_signature(
|
||||||
|
event,
|
||||||
|
self.hs.hostname,
|
||||||
|
self.hs.config.signing_key[0]
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
raise NotImplementedError("Specify an event")
|
raise NotImplementedError("Specify an event")
|
||||||
|
|
||||||
|
@ -1018,13 +1018,16 @@ class FederationHandler(BaseHandler):
|
|||||||
|
|
||||||
res = results.values()
|
res = results.values()
|
||||||
for event in res:
|
for event in res:
|
||||||
event.signatures.update(
|
# We sign these again because there was a bug where we
|
||||||
compute_event_signature(
|
# incorrectly signed things the first time round
|
||||||
event,
|
if self.hs.is_mine_id(event.event_id):
|
||||||
self.hs.hostname,
|
event.signatures.update(
|
||||||
self.hs.config.signing_key[0]
|
compute_event_signature(
|
||||||
|
event,
|
||||||
|
self.hs.hostname,
|
||||||
|
self.hs.config.signing_key[0]
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
defer.returnValue(res)
|
defer.returnValue(res)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user