mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-12 22:02:53 -04:00
Add filter JSON sanity checks.
This commit is contained in:
parent
8398f19bce
commit
c23e3db544
4 changed files with 128 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue