diff options
author | Wim <wim@42.be> | 2016-11-26 15:46:39 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2016-11-26 15:46:39 +0100 |
commit | 70c93d970cd86791936b4ec4b3cd459ca2484ecb (patch) | |
tree | 28b21518605a68c751eb8d0dcceda50a7ec8ec59 | |
parent | 4960273832aa9b64a0c8872cc434fb6dec841bf6 (diff) | |
download | matterbridge-msglm-70c93d970cd86791936b4ec4b3cd459ca2484ecb.tar.gz matterbridge-msglm-70c93d970cd86791936b4ec4b3cd459ca2484ecb.tar.bz2 matterbridge-msglm-70c93d970cd86791936b4ec4b3cd459ca2484ecb.zip |
Update public links to new API (mattermost)
-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 c365784c..e2bf228d 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -140,8 +140,8 @@ func (b *Bmattermost) handleMatterClient(mchan chan *MMMessage) { m.Username = message.Username m.Channel = message.Channel m.Text = message.Text - if len(message.Post.Filenames) > 0 { - for _, link := range b.mc.GetPublicLinks(message.Post.Filenames) { + if len(message.Post.FileIds) > 0 { + for _, link := range b.mc.GetPublicLinks(message.Post.FileIds) { m.Text = m.Text + "\n" + link } } |