mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 03:09:22 -05:00
Remove internal ids
This commit is contained in:
parent
345ff2196a
commit
0e39dcd135
@ -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 New Issue
Block a user