mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-29 23:46:11 -05:00
Fix GET /push_rules
This commit is contained in:
parent
e5b0bbcd33
commit
4efa389299
@ -132,6 +132,9 @@ class PushRuleRestServlet(ClientV1RestServlet):
|
|||||||
|
|
||||||
enabled_map = yield self.store.get_push_rules_enabled_for_user(user_id)
|
enabled_map = yield self.store.get_push_rules_enabled_for_user(user_id)
|
||||||
|
|
||||||
|
rawrules = {k: v for k, v in rawrules.item() if k is not None}
|
||||||
|
enabled_map = {k: v for k, v in enabled_map.item() if k is not None}
|
||||||
|
|
||||||
rules = format_push_rules_for_user(requester.user, rawrules, enabled_map)
|
rules = format_push_rules_for_user(requester.user, rawrules, enabled_map)
|
||||||
|
|
||||||
path = request.postpath[1:]
|
path = request.postpath[1:]
|
||||||
|
Loading…
Reference in New Issue
Block a user