mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 08:09:23 -05:00
Fixup calls to comput_event_signature
We currently pass FrozenEvent instead of `dict` to
`compute_event_signature`, which works by accident due to `dict(event)`
producing the correct result.
This fixes PR #4493 commit 855a151
This commit is contained in:
parent
f815bd7feb
commit
6598992b01
@ -322,7 +322,7 @@ class FederationServer(FederationBase):
|
||||
if self.hs.is_mine_id(event.event_id):
|
||||
event.signatures.update(
|
||||
compute_event_signature(
|
||||
event,
|
||||
event.get_pdu_json(),
|
||||
self.hs.hostname,
|
||||
self.hs.config.signing_key[0]
|
||||
)
|
||||
|
@ -1300,7 +1300,7 @@ class FederationHandler(BaseHandler):
|
||||
|
||||
event.signatures.update(
|
||||
compute_event_signature(
|
||||
event,
|
||||
event.get_pdu_json(),
|
||||
self.hs.hostname,
|
||||
self.hs.config.signing_key[0]
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user