:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(subscriptions): stop Slack from unfurling links in reports (#92309)
posthog[bot]fa3fea027bc4
diff --git a/ee/tasks/subscriptions/slack_subscriptions.py b/ee/tasks/subscriptions/slack_subscriptions.pyindex 95b3e9b73e8e..26ac6fddcc22 100644--- a/ee/tasks/subscriptions/slack_subscriptions.py+++ b/ee/tasks/subscriptions/slack_subscriptions.py@@ -243,11 +243,14 @@ def _prepare_slack_message(})+ # unfurl=False: the AI summary and explore hint carry links Slack would otherwise fetch,+ # burying the chart under preview cards and handing report content to Slack's link fetcher.return SlackMessage(channel=channel,blocks=blocks,title=title,thread_messages=thread_messages,+ unfurl=False,)diff --git a/ee/tasks/test/subscriptions/test_slack_subscriptions.py b/ee/tasks/test/subscriptions/test_slack_subscriptions.pyindex 06eeeb8fb86a..9b6044d2ce44 100644--- a/ee/tasks/test/subscriptions/test_slack_subscriptions.py+++ b/ee/tasks/test/subscriptions/test_slack_subscriptions.py@@ -79,6 +79,9 @@ class TestSlackSubscriptionsTasks(APIBaseTest):assert first_call["channel"] == "C12345"assert first_call["text"] == "Your subscription to the Insight *My Test subscription* is ready! 🎉"+ # Links in the report (explore hint, AI summary) must not auto-unfurl into preview cards.+ assert first_call["unfurl_links"] is False+ assert first_call["unfurl_media"] is Falseassert first_call["blocks"] == [{"type": "section",