Update public links to new API (mattermost)

This commit is contained in:
Wim 2016-11-26 15:46:39 +01:00
parent 4960273832
commit 70c93d970c
1 changed files with 2 additions and 2 deletions

View File

@ -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
}
}