diff options
Diffstat (limited to 'bridge/mattermost/mattermost.go')
-rw-r--r-- | bridge/mattermost/mattermost.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index a79a311b..2f4b4133 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -163,6 +163,11 @@ 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) { + m.Text = m.Text + "\n" + link + } + } mchan <- m } } |