mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
Try and figure out how and why signatures are being changed.
This commit is contained in:
parent
b63cea9660
commit
95aa903ffa
9 changed files with 86 additions and 34 deletions
|
@ -54,10 +54,9 @@ class EventBuilderFactory(object):
|
|||
return e_id.to_string()
|
||||
|
||||
def new(self, key_values={}):
|
||||
if "event_id" not in key_values:
|
||||
key_values["event_id"] = self.create_event_id()
|
||||
key_values["event_id"] = self.create_event_id()
|
||||
|
||||
time_now = self.clock.time_msec()
|
||||
time_now = int(self.clock.time_msec())
|
||||
|
||||
key_values.setdefault("origin", self.hostname)
|
||||
key_values.setdefault("origin_server_ts", time_now)
|
||||
|
@ -66,4 +65,6 @@ class EventBuilderFactory(object):
|
|||
age = key_values["unsigned"].pop("age", 0)
|
||||
key_values["unsigned"].setdefault("age_ts", time_now - age)
|
||||
|
||||
key_values["signatures"] = {}
|
||||
|
||||
return EventBuilder(key_values=key_values,)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue