mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
backend: Add request as parameter to json_success.
Adds request as a parameter to json_success as a refactor towards making `ignored_parameters_unsupported` functionality available for all API endpoints. Also, removes any data parameters that are an empty dict or a dict with the generic success response values.
This commit is contained in:
committed by
Tim Abbott
parent
6f7e53c517
commit
3be622ffa7
@@ -30,4 +30,4 @@ def api_heroku_webhook(
|
||||
content = TEMPLATE.format(user=user, head=head, app=app, url=url, git_log=git_log)
|
||||
|
||||
check_send_webhook_message(request, user_profile, app, content)
|
||||
return json_success()
|
||||
return json_success(request)
|
||||
|
||||
Reference in New Issue
Block a user