From 70c93d970cd86791936b4ec4b3cd459ca2484ecb Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 26 Nov 2016 15:46:39 +0100 Subject: Update public links to new API (mattermost) --- bridge/mattermost/mattermost.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bridge/mattermost') 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 } } -- cgit v1.2.3