Only resign our own events
parent
f91df1f761
commit
11fdfaf03b
|
@ -1093,16 +1093,17 @@ class FederationHandler(BaseHandler):
|
||||||
)
|
)
|
||||||
|
|
||||||
if event:
|
if event:
|
||||||
# FIXME: This is a temporary work around where we occasionally
|
if self.hs.is_mine_id(event.event_id):
|
||||||
# return events slightly differently than when they were
|
# FIXME: This is a temporary work around where we occasionally
|
||||||
# originally signed
|
# return events slightly differently than when they were
|
||||||
event.signatures.update(
|
# originally signed
|
||||||
compute_event_signature(
|
event.signatures.update(
|
||||||
event,
|
compute_event_signature(
|
||||||
self.hs.hostname,
|
event,
|
||||||
self.hs.config.signing_key[0]
|
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(
|
||||||
|
|
Loading…
Reference in New Issue