summary refs log tree commit diff
path: root/synapse/events/utils.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2016-11-22 10:14:05 +0000
committerKegan Dougal <kegan@matrix.org>2016-11-22 10:14:05 +0000
commitcea4e4e7b2534f85abbb90a0cc07125db0aa1727 (patch)
tree8dbb90f246b4230ac0fe72cd8c81662b997d3057 /synapse/events/utils.py
parentMore tests (diff)
downloadsynapse-cea4e4e7b2534f85abbb90a0cc07125db0aa1727.tar.xz
Glue only_event_fields into the sync rest servlet
Diffstat (limited to '')
-rw-r--r--synapse/events/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/events/utils.py b/synapse/events/utils.py
index 9a700d39bb..ce4fe55204 100644
--- a/synapse/events/utils.py
+++ b/synapse/events/utils.py
@@ -258,7 +258,7 @@ def serialize_event(e, time_now_ms, as_client_event=True,
     if as_client_event:
         d = event_format(d)
 
-    if (isinstance(only_event_fields, list) and
+    if (only_event_fields and isinstance(only_event_fields, list) and
             all(isinstance(f, basestring) for f in only_event_fields)):
         d = only_fields(d, only_event_fields)