Skip to content

Commit

Permalink
fix(slack): Disable unfurling of media links.
Browse files Browse the repository at this point in the history
  • Loading branch information
BURG3R5 committed Aug 1, 2022
1 parent bd3228c commit cfbe1fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bot/slack/messenger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand All @@ -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,
)

0 comments on commit cfbe1fb

Please sign in to comment.