mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 18:04:49 -04:00
Require device language when adding a pusher.
Because this seems like it might be useful to do sooner rather than later.
This commit is contained in:
parent
2ca2dbc821
commit
2d2953cf5f
5 changed files with 11 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue