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:
Zev Benjamin
2013-04-02 16:42:51 -04:00
parent 51911d304d
commit c8acdfb228
2 changed files with 2 additions and 2 deletions

View File

@@ -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'),

View File

@@ -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)):