diff options
author | Wim <wim@42.be> | 2017-11-13 00:20:31 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-11-13 00:20:31 +0100 |
commit | 36a800c3f57ed1880ed6530db0542c979f6c69e7 (patch) | |
tree | 045b287bd5087558e3756f870a4336061490ef60 /bridge/mattermost/mattermost.go | |
parent | 6d21f84187cddf17a2758a57bc77c37ed9e7ba70 (diff) | |
download | matterbridge-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/mattermost.go')
-rw-r--r-- | bridge/mattermost/mattermost.go | 4 |
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}) } |