diff options
author | David Baker <dave@matrix.org> | 2015-01-16 11:24:10 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-01-16 11:24:10 +0000 |
commit | 2d2953cf5fce26625e56fc1abc230735d007ea1e (patch) | |
tree | f792d8e4067d5edf43e5bed876fe5d4ee11d8a51 /synapse/rest | |
parent | Send room name and first alias in notification poke. (diff) | |
download | synapse-2d2953cf5fce26625e56fc1abc230735d007ea1e.tar.xz |
Require device language when adding a pusher.
Because this seems like it might be useful to do sooner rather than later.
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/pusher.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/pusher.py b/synapse/rest/pusher.py index 5b371318d0..6b9a59adb6 100644 --- a/synapse/rest/pusher.py +++ b/synapse/rest/pusher.py @@ -32,7 +32,7 @@ class PusherRestServlet(RestServlet): content = _parse_json(request) reqd = ['kind', 'app_id', 'app_display_name', - 'device_display_name', 'pushkey', 'data'] + 'device_display_name', 'pushkey', 'lang', 'data'] missing = [] for i in reqd: if i not in content: @@ -50,6 +50,7 @@ class PusherRestServlet(RestServlet): app_display_name=content['app_display_name'], device_display_name=content['device_display_name'], pushkey=content['pushkey'], + lang=content['lang'], data=content['data'] ) except PusherConfigException as pce: |