diff options
author | Erik Johnston <erik@matrix.org> | 2015-10-16 15:35:26 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-10-16 15:35:26 +0100 |
commit | 524b708f98b774fda49d570923cc62105fe0fa45 (patch) | |
tree | da6f4382ca073e517319a1c2098806c83eeac8f9 | |
parent | Merge pull request #302 from matrix-org/daniel/3pidinvites (diff) | |
parent | Fix FilteringStore.get_user_filter to work with postgres (diff) | |
download | synapse-524b708f98b774fda49d570923cc62105fe0fa45.tar.xz |
Merge pull request #311 from matrix-org/markjh/postgres_fixes
Fix FilteringStore.get_user_filter to work with postgres
-rw-r--r-- | synapse/storage/filtering.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/filtering.py b/synapse/storage/filtering.py index 700da8d8c3..fcd43c7fdd 100644 --- a/synapse/storage/filtering.py +++ b/synapse/storage/filtering.py @@ -34,7 +34,7 @@ class FilteringStore(SQLBaseStore): desc="get_user_filter", ) - defer.returnValue(json.loads(def_json.decode("utf-8"))) + defer.returnValue(json.loads(str(def_json).decode("utf-8"))) def add_user_filter(self, user_localpart, user_filter): def_json = json.dumps(user_filter).encode("utf-8") |