slack_incoming: add ok=true to json in case of success.

This better simulates the Slack API, which is important, since some
integrations check this response and decide whether the Slack endpoint
is working based on what they receive.
This commit is contained in:
Pierre Carru 2024-10-04 17:42:27 +02:00 committed by GitHub
parent e7e8062b2e
commit 5cbe3203f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ def api_slack_incoming_webhook(
if body != "":
body = replace_formatting(replace_links(body).strip())
check_send_webhook_message(request, user_profile, user_specified_topic, body)
return json_success(request)
return json_success(request, data={"ok": True})
def render_block(block: WildValue) -> str: