summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-01-28 16:45:18 +0000
committerKegan Dougal <kegan@matrix.org>2015-01-28 16:45:18 +0000
commitc23e3db544eb940d95a092b661e3872480f3bf30 (patch)
treeddb9952d637e87ad9e6ce357c113d9fc0b9a2654 /synapse/rest/client
parentCreated schema delta (diff)
downloadsynapse-c23e3db544eb940d95a092b661e3872480f3bf30.tar.xz
Add filter JSON sanity checks.
Diffstat (limited to 'synapse/rest/client')
-rw-r--r--synapse/rest/client/v2_alpha/filter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/filter.py b/synapse/rest/client/v2_alpha/filter.py
index 09e44e8ae0..81a3e95155 100644
--- a/synapse/rest/client/v2_alpha/filter.py
+++ b/synapse/rest/client/v2_alpha/filter.py
@@ -93,7 +93,7 @@ class CreateFilterRestServlet(RestServlet):
 
         filter_id = yield self.filtering.add_user_filter(
             user_localpart=target_user.localpart,
-            definition=content,
+            user_filter=content,
         )
 
         defer.returnValue((200, {"filter_id": str(filter_id)}))