diff options
-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 } } |