mirror of
https://github.com/42wim/matterbridge
synced 2024-11-03 15:40:24 +00:00
Use GetFileLinks. Also show links to non-public files (mattermost)
This commit is contained in:
parent
9dcd51fb80
commit
4aa646f6b0
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user