Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integrations: Improve Slack integrations setup notification.

PieterCK059782bb9f3c
diff --git a/zerver/webhooks/slack/view.py b/zerver/webhooks/slack/view.py
index 81a1245d8e5..34f0dd9eaa4 100644
--- a/zerver/webhooks/slack/view.py
+++ b/zerver/webhooks/slack/view.py
@@ -20,7 +20,7 @@ from zerver.lib.request import RequestVariableMissingError
from zerver.lib.response import json_success
from zerver.lib.typed_endpoint import typed_endpoint
from zerver.lib.validator import WildValue, check_none_or, check_string, to_wild_value
-from zerver.lib.webhooks.common import check_send_webhook_message
+from zerver.lib.webhooks.common import check_send_webhook_message, get_setup_webhook_message
from zerver.models import UserProfile
FILE_LINK_TEMPLATE = "\n*[{file_name}]({file_link})*"
@@ -234,7 +234,7 @@ def api_slack_webhook(
request,
user_profile,
"Integration events",
- "Successfully verified webhook URL with Slack!",
+ get_setup_webhook_message("Slack"),
)
return json_success(request=request, data={"challenge": challenge})