summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorDuco van Amstel <duco.vanamstel@gmail.com>2019-03-12 21:56:43 +0000
committerWim <wim@42.be>2019-03-12 22:56:43 +0100
commitb638f7037a270a7b84b6e7433ffda761dfd7a44b (patch)
tree75b1023d22cdfb2728de2a744ce72e8ead83a5b0 /bridge
parent74699a8262ef9bcc44046238ba43267620fd8a8e (diff)
downloadmatterbridge-msglm-b638f7037a270a7b84b6e7433ffda761dfd7a44b.tar.gz
matterbridge-msglm-b638f7037a270a7b84b6e7433ffda761dfd7a44b.tar.bz2
matterbridge-msglm-b638f7037a270a7b84b6e7433ffda761dfd7a44b.zip
Force Slack link unfurling (#763)
Diffstat (limited to 'bridge')
-rw-r--r--bridge/slack/slack.go6
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 {