diff --git a/zerver/views/alert_words.py b/zerver/views/alert_words.py index 012fd4271f..bd3a98081b 100644 --- a/zerver/views/alert_words.py +++ b/zerver/views/alert_words.py @@ -15,13 +15,6 @@ rest_dispatch = csrf_exempt((lambda request, *args, **kwargs: _rest_dispatch(req def list_alert_words(request, user_profile): return json_success({'alert_words': user_alert_words(user_profile)}) -@authenticated_json_post_view -@has_request_variables -def json_set_alert_words(request, user_profile, - alert_words=REQ(validator=check_list(check_string), default=[])): - do_set_alert_words(user_profile, alert_words) - return json_success() - @has_request_variables def set_alert_words(request, user_profile, alert_words=REQ(validator=check_list(check_string), default=[])): diff --git a/zproject/urls.py b/zproject/urls.py index 7c38aa8f4d..bc6f48ffbe 100644 --- a/zproject/urls.py +++ b/zproject/urls.py @@ -130,7 +130,6 @@ urlpatterns += patterns('zerver.views', url(r'^json/update_message$', 'messages.json_update_message'), url(r'^json/fetch_raw_message$', 'messages.json_fetch_raw_message'), url(r'^json/refer_friend$', 'json_refer_friend'), - url(r'^json/set_alert_words$', 'alert_words.json_set_alert_words'), url(r'^json/set_muted_topics$', 'json_set_muted_topics'), url(r'^json/set_avatar$', 'user_settings.json_set_avatar'), url(r'^json/time_setting$', 'user_settings.json_time_setting'),