diff --git a/zerver/views/messages.py b/zerver/views/messages.py index d423ac2403..d52541d47f 100644 --- a/zerver/views/messages.py +++ b/zerver/views/messages.py @@ -701,10 +701,6 @@ def same_realm_jabber_user(user_profile, email): def api_send_message(request, user_profile): return send_message_backend(request, user_profile) -@authenticated_json_post_view -def json_send_message(request, user_profile): - return send_message_backend(request, user_profile) - # We do not @require_login for send_message_backend, since it is used # both from the API and the web service. Code calling # send_message_backend should either check the API key or check that diff --git a/zproject/urls.py b/zproject/urls.py index 9284da60ae..baecf28a70 100644 --- a/zproject/urls.py +++ b/zproject/urls.py @@ -110,7 +110,6 @@ urlpatterns += patterns('zerver.views', url(r'^json/rename_stream$', 'streams.json_rename_stream'), url(r'^json/make_stream_public$', 'streams.json_make_stream_public'), url(r'^json/make_stream_private$', 'streams.json_make_stream_private'), - url(r'^json/send_message$', 'messages.json_send_message'), url(r'^json/invite_users$', 'json_invite_users'), url(r'^json/bulk_invite_users$', 'json_bulk_invite_users'), url(r'^json/settings/change$', 'user_settings.json_change_settings'),