summaryrefslogtreecommitdiffstats
path: root/bridge/mattermost
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-07-15 16:51:10 +0200
committerWim <wim@42.be>2017-07-15 16:51:10 +0200
commit4aa646f6b006bd3799026c502614ac7c8c1e149e (patch)
tree913550d37627ee3ba678412820f365b2bd82375e /bridge/mattermost
parent9dcd51fb80baa75c50323b8094552bfd660a77e8 (diff)
downloadmatterbridge-msglm-4aa646f6b006bd3799026c502614ac7c8c1e149e.tar.gz
matterbridge-msglm-4aa646f6b006bd3799026c502614ac7c8c1e149e.tar.bz2
matterbridge-msglm-4aa646f6b006bd3799026c502614ac7c8c1e149e.zip
Use GetFileLinks. Also show links to non-public files (mattermost)
Diffstat (limited to 'bridge/mattermost')
-rw-r--r--bridge/mattermost/mattermost.go2
1 files changed, 1 insertions, 1 deletions
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
}
}