mirror of https://github.com/zulip/zulip.git
zilencer: Rename remote_server_register_push to register_remote_push_device.
This commit is contained in:
parent
3e19efca36
commit
76650f5930
|
@ -350,7 +350,7 @@ def add_push_device_token(user_profile: UserProfile,
|
|||
post_data['ios_app_id'] = ios_app_id
|
||||
|
||||
logging.info("Sending new push device to bouncer: %r", post_data)
|
||||
# Calls zilencer.views.remote_server_register_push.
|
||||
# Calls zilencer.views.register_remote_push_device
|
||||
send_to_push_bouncer('POST', 'register', post_data)
|
||||
return
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ i18n_urlpatterns = [
|
|||
# Zilencer views following the REST API style
|
||||
v1_api_and_json_patterns = [
|
||||
url('^remotes/push/register$', rest_dispatch,
|
||||
{'POST': 'zilencer.views.remote_server_register_push'}),
|
||||
{'POST': 'zilencer.views.register_remote_push_device'}),
|
||||
url('^remotes/push/unregister$', rest_dispatch,
|
||||
{'POST': 'zilencer.views.remote_server_unregister_push'}),
|
||||
url('^remotes/push/notify$', rest_dispatch,
|
||||
|
|
|
@ -34,7 +34,7 @@ def validate_bouncer_token_request(entity: Union[UserProfile, RemoteZulipServer]
|
|||
validate_token(token, kind)
|
||||
|
||||
@has_request_variables
|
||||
def remote_server_register_push(request: HttpRequest, entity: Union[UserProfile, RemoteZulipServer],
|
||||
def register_remote_push_device(request: HttpRequest, entity: Union[UserProfile, RemoteZulipServer],
|
||||
user_id: int=REQ(), token: bytes=REQ(),
|
||||
token_kind: int=REQ(validator=check_int),
|
||||
ios_app_id: Optional[Text]=None) -> HttpResponse:
|
||||
|
|
Loading…
Reference in New Issue