diff options
author | Erik Johnston <erik@matrix.org> | 2014-11-03 13:06:58 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-11-03 13:06:58 +0000 |
commit | ad6eacb3e9424902da9f83c8f106a4f0169c3108 (patch) | |
tree | ea58644dcf4e79d3379b1031f12a48713e7aee87 /synapse/api | |
parent | For now, don't store txn -> pdu mappings. (diff) | |
download | synapse-ad6eacb3e9424902da9f83c8f106a4f0169c3108.tar.xz |
Rename PDU fields to match that of events.
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/events/utils.py | 2 |
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. |