mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 18:40:25 +00:00
Add support for mattermost attachments. Shows public link on bridges. Closes #32
This commit is contained in:
parent
fd756c5332
commit
272eef544f
@ -163,6 +163,11 @@ func (b *Bmattermost) handleMatterClient(mchan chan *MMMessage) {
|
|||||||
m.Username = message.Username
|
m.Username = message.Username
|
||||||
m.Channel = message.Channel
|
m.Channel = message.Channel
|
||||||
m.Text = message.Text
|
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
|
mchan <- m
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user