diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-25 16:49:02 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-25 16:49:02 +0100 |
commit | 69ddec65895d33a25dbaa5991462e32442dbe6e5 (patch) | |
tree | b64eea9930ba9ec3c88658ae63dd19f288cdc583 /synapse/api | |
parent | Rename redaction test case to something helpful (diff) | |
download | synapse-69ddec65895d33a25dbaa5991462e32442dbe6e5.tar.xz |
Don't strip of False values from events when serializing
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/events/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/api/events/__init__.py b/synapse/api/events/__init__.py index 0ceb703c74..db6dff5762 100644 --- a/synapse/api/events/__init__.py +++ b/synapse/api/events/__init__.py @@ -22,7 +22,7 @@ def serialize_event(hs, e): if not isinstance(e, SynapseEvent): return e - d = {k: v for k, v in e.get_dict().items() if v is not None or v is not False} + d = {k: v for k, v in e.get_dict().items() if v is not None} if "age_ts" in d: d["age"] = int(hs.get_clock().time_msec()) - d["age_ts"] del d["age_ts"] |