diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-15 13:26:05 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-15 13:26:11 +0100 |
commit | 5bd9369a62c6d6cf677e9eef7d58096449542cdf (patch) | |
tree | 96b9ed79f774a2fc38b5a8345385b0246197087b /synapse/server.py | |
parent | BF: inviter field has moved to the room root object (diff) | |
download | synapse-5bd9369a62c6d6cf677e9eef7d58096449542cdf.tar.xz |
Correctly handle the 'age' key in events and pdus
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py index 83368ea5a7..7c185537aa 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -20,6 +20,7 @@ # Imports required for the default HomeServer() implementation from synapse.federation import initialize_http_replication +from synapse.api.events import serialize_event from synapse.api.events.factory import EventFactory from synapse.notifier import Notifier from synapse.api.auth import Auth @@ -138,6 +139,9 @@ class BaseHomeServer(object): object.""" return RoomID.from_string(s, hs=self) + def serialize_event(self, e): + return serialize_event(self, e) + # Build magic accessors for every dependency for depname in BaseHomeServer.DEPENDENCIES: BaseHomeServer._make_dependency_method(depname) |