From b638f7037a270a7b84b6e7433ffda761dfd7a44b Mon Sep 17 00:00:00 2001 From: Duco van Amstel Date: Tue, 12 Mar 2019 21:56:43 +0000 Subject: Force Slack link unfurling (#763) --- bridge/slack/slack.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bridge/slack') diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 860f4942..f0f77688 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -424,7 +424,11 @@ func (b *Bslack) postMessage(msg *config.Message, channelInfo *slack.Channel) (s return "", nil } messageOptions := b.prepareMessageOptions(msg) - messageOptions = append(messageOptions, slack.MsgOptionText(msg.Text, false)) + messageOptions = append( + messageOptions, + slack.MsgOptionText(msg.Text, false), + slack.MsgOptionEnableLinkUnfurl(), + ) for { _, id, err := b.rtm.PostMessage(channelInfo.ID, messageOptions...) if err == nil { -- cgit v1.2.3