diff options
author | Kegan Dougal <kegan@matrix.org> | 2015-01-28 16:45:18 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2015-01-28 16:45:18 +0000 |
commit | c23e3db544eb940d95a092b661e3872480f3bf30 (patch) | |
tree | ddb9952d637e87ad9e6ce357c113d9fc0b9a2654 /synapse/storage | |
parent | Created schema delta (diff) | |
download | synapse-c23e3db544eb940d95a092b661e3872480f3bf30.tar.xz |
Add filter JSON sanity checks.
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/filtering.py | 4 |
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 |