mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:56:07 -04:00
Glue only_event_fields into the sync rest servlet
This commit is contained in:
parent
0a8b0eeca1
commit
cea4e4e7b2
3 changed files with 15 additions and 11 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue