mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 04:13:52 +01:00
Remove internal ids
This commit is contained in:
parent
345ff2196a
commit
0e39dcd135
1 changed files with 4 additions and 0 deletions
|
@ -140,6 +140,10 @@ class PushRuleRestServlet(ClientV1RestServlet):
|
|||
|
||||
template_name = _priority_class_to_template_name(r['priority_class'])
|
||||
|
||||
# Remove internal stuff.
|
||||
for c in r["conditions"]:
|
||||
c.pop("_id", None)
|
||||
|
||||
if r['priority_class'] > PRIORITY_CLASS_MAP['override']:
|
||||
# per-device rule
|
||||
profile_tag = _profile_tag_from_conditions(r["conditions"])
|
||||
|
|
Loading…
Reference in a new issue