mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 19:23:53 +01:00
Re-sign events when we return them via federation as a temporary hack to work around the problem where we reconstruct events differently than when they were signed
This commit is contained in:
parent
00ab5cd6f2
commit
b8849c8cbf
1 changed files with 11 additions and 0 deletions
|
@ -540,6 +540,17 @@ class FederationHandler(BaseHandler):
|
||||||
)
|
)
|
||||||
|
|
||||||
if event:
|
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 do_auth:
|
if do_auth:
|
||||||
in_room = yield self.auth.check_host_in_room(
|
in_room = yield self.auth.check_host_in_room(
|
||||||
event.room_id,
|
event.room_id,
|
||||||
|
|
Loading…
Reference in a new issue