summaryrefslogtreecommitdiffstats
path: root/model/incoming_webhook.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/incoming_webhook.go')
-rw-r--r--model/incoming_webhook.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/model/incoming_webhook.go b/model/incoming_webhook.go
index de58093ff..ce755f889 100644
--- a/model/incoming_webhook.go
+++ b/model/incoming_webhook.go
@@ -28,13 +28,13 @@ type IncomingWebhook struct {
}
type IncomingWebhookRequest struct {
- Text string `json:"text"`
- Username string `json:"username"`
- IconURL string `json:"icon_url"`
- ChannelName string `json:"channel"`
- Props StringInterface `json:"props"`
- Attachments SlackAttachments `json:"attachments"`
- Type string `json:"type"`
+ Text string `json:"text"`
+ Username string `json:"username"`
+ IconURL string `json:"icon_url"`
+ ChannelName string `json:"channel"`
+ Props StringInterface `json:"props"`
+ Attachments []*SlackAttachment `json:"attachments"`
+ Type string `json:"type"`
}
func (o *IncomingWebhook) ToJson() string {
@@ -209,7 +209,7 @@ func IncomingWebhookRequestFromJson(data io.Reader) *IncomingWebhookRequest {
}
o.Text = ExpandAnnouncement(o.Text)
- o.Attachments.Process()
+ o.Attachments = ProcessSlackAttachments(o.Attachments)
return o
}