diff options
author | Duco van Amstel <duco.vanamstel@gmail.com> | 2019-03-12 21:56:43 +0000 |
---|---|---|
committer | Wim <wim@42.be> | 2019-03-12 22:56:43 +0100 |
commit | b638f7037a270a7b84b6e7433ffda761dfd7a44b (patch) | |
tree | 75b1023d22cdfb2728de2a744ce72e8ead83a5b0 | |
parent | 74699a8262ef9bcc44046238ba43267620fd8a8e (diff) | |
download | matterbridge-msglm-b638f7037a270a7b84b6e7433ffda761dfd7a44b.tar.gz matterbridge-msglm-b638f7037a270a7b84b6e7433ffda761dfd7a44b.tar.bz2 matterbridge-msglm-b638f7037a270a7b84b6e7433ffda761dfd7a44b.zip |
Force Slack link unfurling (#763)
-rw-r--r-- | bridge/slack/slack.go | 6 |
1 files changed, 5 insertions, 1 deletions
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 { |