mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +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
@@ -733,7 +733,7 @@ def api_github_webhook(
|
||||
# This is nothing to worry about--get_event() returns None
|
||||
# for events that are valid but not yet handled by us.
|
||||
# See IGNORED_EVENTS, for example.
|
||||
return json_success()
|
||||
return json_success(request)
|
||||
|
||||
subject = get_subject_based_on_type(payload, event)
|
||||
|
||||
@@ -746,7 +746,7 @@ def api_github_webhook(
|
||||
body = body_function(helper)
|
||||
|
||||
check_send_webhook_message(request, user_profile, subject, body, event)
|
||||
return json_success()
|
||||
return json_success(request)
|
||||
|
||||
|
||||
def get_zulip_event_name(
|
||||
|
||||
Reference in New Issue
Block a user