mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-09-16 07:12:31 +00:00
Sync with mattermost 3.6.0
This commit is contained in:
3
vendor/github.com/mattermost/platform/model/incoming_webhook.go
generated
vendored
3
vendor/github.com/mattermost/platform/model/incoming_webhook.go
generated
vendored
@@ -6,6 +6,7 @@ package model
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"regexp"
|
||||
"strings"
|
||||
@@ -233,7 +234,7 @@ func expandAnnouncements(i *IncomingWebhookRequest) {
|
||||
for _, field := range fields {
|
||||
f := field.(map[string]interface{})
|
||||
if f["value"] != nil {
|
||||
f["value"] = expandAnnouncement(f["value"].(string))
|
||||
f["value"] = expandAnnouncement(fmt.Sprintf("%v", f["value"]))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user