summary refs log tree commit diff
path: root/synapse/storage
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/storage
parentCreated schema delta (diff)
downloadsynapse-c23e3db544eb940d95a092b661e3872480f3bf30.tar.xz
Add filter JSON sanity checks.
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/filtering.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/filtering.py b/synapse/storage/filtering.py
index e98eaf8032..bab68a9eef 100644
--- a/synapse/storage/filtering.py
+++ b/synapse/storage/filtering.py
@@ -39,8 +39,8 @@ class FilteringStore(SQLBaseStore):
 
         defer.returnValue(json.loads(def_json))
 
-    def add_user_filter(self, user_localpart, definition):
-        def_json = json.dumps(definition)
+    def add_user_filter(self, user_localpart, user_filter):
+        def_json = json.dumps(user_filter)
 
         # Need an atomic transaction to SELECT the maximal ID so far then
         # INSERT a new one