Skip to content

Commit 90957b7

Browse files
authored
fix(slack): Disable unfurling of media links.
2 parents 67c2843 + cfbe1fb commit 90957b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bot/slack/messenger.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def send_message(self, channel: str, message: str, details: str | None):
136136
},
137137
}],
138138
unfurl_links=False,
139+
unfurl_media=False,
139140
)
140141
else:
141142
response = self.client.chat_postMessage(
@@ -148,6 +149,7 @@ def send_message(self, channel: str, message: str, details: str | None):
148149
},
149150
}],
150151
unfurl_links=False,
152+
unfurl_media=False,
151153
)
152154
message_id = response.data["ts"]
153155
self.client.chat_postMessage(
@@ -161,4 +163,5 @@ def send_message(self, channel: str, message: str, details: str | None):
161163
}],
162164
thread_ts=message_id,
163165
unfurl_links=False,
166+
unfurl_media=False,
164167
)

0 commit comments

Comments
 (0)