mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-09 16:50:30 +00:00
Update public links to new API (mattermost)
This commit is contained in:
parent
4960273832
commit
70c93d970c
@ -140,8 +140,8 @@ 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) {
|
||||
if len(message.Post.FileIds) > 0 {
|
||||
for _, link := range b.mc.GetPublicLinks(message.Post.FileIds) {
|
||||
m.Text = m.Text + "\n" + link
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user