summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-11-03 13:06:58 +0000
committerErik Johnston <erik@matrix.org>2014-11-03 13:06:58 +0000
commitad6eacb3e9424902da9f83c8f106a4f0169c3108 (patch)
treeea58644dcf4e79d3379b1031f12a48713e7aee87 /synapse/api
parentFor now, don't store txn -> pdu mappings. (diff)
downloadsynapse-ad6eacb3e9424902da9f83c8f106a4f0169c3108.tar.xz
Rename PDU fields to match that of events.
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/events/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/api/events/utils.py b/synapse/api/events/utils.py
index 7fdf45a264..31601fd3a9 100644
--- a/synapse/api/events/utils.py
+++ b/synapse/api/events/utils.py
@@ -32,7 +32,7 @@ def prune_event(event):
 def prune_pdu(pdu):
     """Removes keys that contain unrestricted and non-essential data from a PDU
     """
-    return _prune_event_or_pdu(pdu.pdu_type, pdu)
+    return _prune_event_or_pdu(pdu.type, pdu)
 
 def _prune_event_or_pdu(event_type, event):
     # Remove all extraneous fields.