mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
Make the default for API-users be apply_markdown=False
This fixes a regression that was introduced when rebasing the event system branch. (imported from commit da575e96ebdb4dbcca3a658a10a0f81628f9317c)
This commit is contained in:
@@ -138,7 +138,7 @@ urlpatterns += patterns('zephyr.views',
|
|||||||
'POST': 'add_subscriptions_backend',
|
'POST': 'add_subscriptions_backend',
|
||||||
'PATCH': 'update_subscriptions_backend'}),
|
'PATCH': 'update_subscriptions_backend'}),
|
||||||
url(r'^api/v1/register$', 'rest_dispatch',
|
url(r'^api/v1/register$', 'rest_dispatch',
|
||||||
{'POST': 'events_register_backend'}),
|
{'POST': 'api_events_register'}),
|
||||||
|
|
||||||
# These are integration-specific web hook callbacks
|
# These are integration-specific web hook callbacks
|
||||||
url(r'^api/v1/external/github$', 'api_github_landing'),
|
url(r'^api/v1/external/github$', 'api_github_landing'),
|
||||||
|
|||||||
@@ -1511,7 +1511,7 @@ def json_report_error(request, user_profile, message=POST, stacktrace=POST,
|
|||||||
def json_events_register(request, user_profile):
|
def json_events_register(request, user_profile):
|
||||||
return events_register_backend(request, user_profile)
|
return events_register_backend(request, user_profile)
|
||||||
|
|
||||||
@authenticated_api_view
|
# Does not need to be authenticated because it's called from rest_dispatch
|
||||||
@has_request_variables
|
@has_request_variables
|
||||||
def api_events_register(request, user_profile,
|
def api_events_register(request, user_profile,
|
||||||
apply_markdown=POST(default=False, converter=json_to_bool)):
|
apply_markdown=POST(default=False, converter=json_to_bool)):
|
||||||
|
|||||||
Reference in New Issue
Block a user