summaryrefslogtreecommitdiffstats
path: root/bridge/mattermost
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-11-13 00:20:31 +0100
committerWim <wim@42.be>2017-11-13 00:20:31 +0100
commit36a800c3f57ed1880ed6530db0542c979f6c69e7 (patch)
tree045b287bd5087558e3756f870a4336061490ef60 /bridge/mattermost
parent6d21f84187cddf17a2758a57bc77c37ed9e7ba70 (diff)
downloadmatterbridge-msglm-36a800c3f57ed1880ed6530db0542c979f6c69e7.tar.gz
matterbridge-msglm-36a800c3f57ed1880ed6530db0542c979f6c69e7.tar.bz2
matterbridge-msglm-36a800c3f57ed1880ed6530db0542c979f6c69e7.zip
Add support for comments from slack file uploads (slack)
Diffstat (limited to 'bridge/mattermost')
-rw-r--r--bridge/mattermost/mattermost.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go
index 3274d81d..9d9990b2 100644
--- a/bridge/mattermost/mattermost.go
+++ b/bridge/mattermost/mattermost.go
@@ -190,9 +190,9 @@ func (b *Bmattermost) Send(msg config.Message) (string, error) {
flog.Debugf("ERROR %#v", err)
return "", err
}
- message = "uploaded a file: " + fi.Name
+ message = fi.Comment
if b.Config.PrefixMessagesWithNick {
- message = nick + "uploaded a file: " + fi.Name
+ message = nick + fi.Comment
}
res, err = b.mc.PostMessageWithFiles(b.mc.GetChannelId(channel, ""), message, []string{id})
}