summary refs log tree commit diff
path: root/synapse/rest/pusher.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-01-16 11:24:10 +0000
committerDavid Baker <dave@matrix.org>2015-01-16 11:24:10 +0000
commit2d2953cf5fce26625e56fc1abc230735d007ea1e (patch)
treef792d8e4067d5edf43e5bed876fe5d4ee11d8a51 /synapse/rest/pusher.py
parentSend room name and first alias in notification poke. (diff)
downloadsynapse-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/pusher.py')
-rw-r--r--synapse/rest/pusher.py3
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: