Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 64c89aeeae4ea61c9fd549660d1e758fe2868536 Author: Wim <wim@42.be> Date: Sat Nov 26 15:46:39 2016 +0000 Update public links to new API (mattermost) diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index c365784..e2bf228 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -1408 +1408 @@ 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   }   }