From 4aa646f6b006bd3799026c502614ac7c8c1e149e Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 15 Jul 2017 16:51:10 +0200 Subject: [PATCH] Use GetFileLinks. Also show links to non-public files (mattermost) --- bridge/mattermost/mattermost.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index 3a16f6a2..0592e9b9 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -181,7 +181,7 @@ func (b *Bmattermost) handleMatterClient(mchan chan *MMMessage) { m.Text = message.Text + b.Config.EditSuffix } if len(message.Post.FileIds) > 0 { - for _, link := range b.mc.GetPublicLinks(message.Post.FileIds) { + for _, link := range b.mc.GetFileLinks(message.Post.FileIds) { m.Text = m.Text + "\n" + link } }