summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-12-19 12:16:26 +0000
committerMark Haines <mark.haines@matrix.org>2014-12-19 12:16:26 +0000
commit5dbe820e9ac94247148eb57ce1c78f6a0c516004 (patch)
tree003f15775c3eb0cea8ab89be10e5ce5e911ac616 /synapse
parentSYN-203: Handle requests for thunbnails for images that are small (diff)
downloadsynapse-5dbe820e9ac94247148eb57ce1c78f6a0c516004.tar.xz
Remove unneeded federation keys from events
Diffstat (limited to '')
-rw-r--r--synapse/events/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/events/utils.py b/synapse/events/utils.py
index 94f3f15f52..4849d3ce41 100644
--- a/synapse/events/utils.py
+++ b/synapse/events/utils.py
@@ -126,5 +126,8 @@ def serialize_event(hs, e):
     del d["prev_events"]
     del d["hashes"]
     del d["signatures"]
+    d.pop("depth", None)
+    d.pop("unsigned", None)
+    d.pop("origin", None)
 
     return d