Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
integrations: Change Slack private channel mention string.
PieterCKf89881d8432c
diff --git a/zerver/webhooks/slack/view.py b/zerver/webhooks/slack/view.pyindex 34f0dd9eaa4..f8b702e5ab9 100644--- a/zerver/webhooks/slack/view.py+++ b/zerver/webhooks/slack/view.py@@ -79,7 +79,9 @@ def convert_slack_user_and_channel_mentions(text: str, app_token: str) -> str:# a mention isn't triggered for a Zulip channel with the same name.channel_info: list[str] = slack_channelmention_match.group(0).split("|")channel_name = channel_info[1]- tokens[iterator] = f"**#{channel_name}**" if channel_name else "**#[private channel]**"+ tokens[iterator] = (+ f"**#{channel_name}**" if channel_name else "**#[private Slack channel]**"+ )text = " ".join(tokens)return text