mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-12 13:04:20 -05:00
Fill in the 'default' field for user-defined push rules (#6639)
Signed-off-by: Karl Linderhed <git@karlinde.se>
This commit is contained in:
parent
b994e86e35
commit
fe1580bfd9
1
changelog.d/6639.bugfix
Normal file
1
changelog.d/6639.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix missing field `default` when fetching user-defined push rules.
|
@ -41,6 +41,7 @@ def _load_rules(rawrules, enabled_map):
|
||||
rule = dict(rawrule)
|
||||
rule["conditions"] = json.loads(rawrule["conditions"])
|
||||
rule["actions"] = json.loads(rawrule["actions"])
|
||||
rule["default"] = False
|
||||
ruleslist.append(rule)
|
||||
|
||||
# We're going to be mutating this a lot, so do a deep copy
|
||||
|
Loading…
Reference in New Issue
Block a user