Delete old route for json/update_active_status.

This commit is contained in:
Ashish 2016-04-03 11:31:10 +05:30 committed by Tim Abbott
parent 78b9f45bf7
commit 1bf644369f
3 changed files with 1 additions and 6 deletions

View File

@ -29,7 +29,7 @@ var presence_descriptions = {
idle: 'is not active' idle: 'is not active'
}; };
/* Keep in sync with views.py:json_update_active_status() */ /* Keep in sync with views.py:update_active_status_backend() */
exports.ACTIVE = "active"; exports.ACTIVE = "active";
exports.IDLE = "idle"; exports.IDLE = "idle";

View File

@ -1128,10 +1128,6 @@ def update_active_status_backend(request, user_profile, status=REQ,
return json_success(ret) return json_success(ret)
@authenticated_json_post_view
def json_update_active_status(request, user_profile):
return update_active_status_backend(request, user_profile)
@authenticated_json_post_view @authenticated_json_post_view
def json_get_active_statuses(request, user_profile): def json_get_active_statuses(request, user_profile):
return json_success(get_status_list(user_profile)) return json_success(get_status_list(user_profile))

View File

@ -113,7 +113,6 @@ urlpatterns += patterns('zerver.views',
url(r'^json/subscriptions/property$', 'streams.json_subscription_property'), url(r'^json/subscriptions/property$', 'streams.json_subscription_property'),
url(r'^json/get_subscribers$', 'streams.json_get_subscribers'), url(r'^json/get_subscribers$', 'streams.json_get_subscribers'),
url(r'^json/fetch_api_key$', 'json_fetch_api_key'), url(r'^json/fetch_api_key$', 'json_fetch_api_key'),
url(r'^json/update_active_status$', 'json_update_active_status'),
url(r'^json/get_active_statuses$', 'json_get_active_statuses'), url(r'^json/get_active_statuses$', 'json_get_active_statuses'),
url(r'^json/tutorial_send_message$', 'tutorial.json_tutorial_send_message'), url(r'^json/tutorial_send_message$', 'tutorial.json_tutorial_send_message'),
url(r'^json/tutorial_status$', 'tutorial.json_tutorial_status'), url(r'^json/tutorial_status$', 'tutorial.json_tutorial_status'),