From cfbe1fba9156bbe85d75836809a6b83cf9db905e Mon Sep 17 00:00:00 2001 From: BURG3R5 <77491630+BURG3R5@users.noreply.github.com> Date: Mon, 1 Aug 2022 19:14:21 +0530 Subject: [PATCH] fix(slack): Disable unfurling of media links. --- bot/slack/messenger.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot/slack/messenger.py b/bot/slack/messenger.py index 5fc9f1a..d71e141 100644 --- a/bot/slack/messenger.py +++ b/bot/slack/messenger.py @@ -136,6 +136,7 @@ def send_message(self, channel: str, message: str, details: str | None): }, }], unfurl_links=False, + unfurl_media=False, ) else: response = self.client.chat_postMessage( @@ -148,6 +149,7 @@ def send_message(self, channel: str, message: str, details: str | None): }, }], unfurl_links=False, + unfurl_media=False, ) message_id = response.data["ts"] self.client.chat_postMessage( @@ -161,4 +163,5 @@ def send_message(self, channel: str, message: str, details: str | None): }], thread_ts=message_id, unfurl_links=False, + unfurl_media=False, )