summaryrefslogtreecommitdiffstats
path: root/model/slack_attachment.go
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-03-10 05:22:14 -0500
committerGeorge Goldberg <george@gberg.me>2017-03-10 10:22:14 +0000
commit06a7c3ba8e054237c44e8b1586c76d00c1cffb67 (patch)
tree396ae2313e89bef2c8c8de4ac0fc3d3273f0077d /model/slack_attachment.go
parent06930f378cd61c72f0ba9b0718bc54eea0c30406 (diff)
downloadchat-06a7c3ba8e054237c44e8b1586c76d00c1cffb67.tar.gz
chat-06a7c3ba8e054237c44e8b1586c76d00c1cffb67.tar.bz2
chat-06a7c3ba8e054237c44e8b1586c76d00c1cffb67.zip
PLT-5800 Cleaned up duplicated code for adding slack attachments to posts (#5711)
Diffstat (limited to 'model/slack_attachment.go')
-rw-r--r--model/slack_attachment.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/model/slack_attachment.go b/model/slack_attachment.go
index d68fe406f..e1639f2af 100644
--- a/model/slack_attachment.go
+++ b/model/slack_attachment.go
@@ -4,6 +4,7 @@
package model
type SlackAttachment struct {
+ Id int64 `json:"id"`
Fallback string `json:"fallback"`
Color string `json:"color"`
Pretext string `json:"pretext"`
@@ -18,7 +19,7 @@ type SlackAttachment struct {
ThumbURL string `json:"thumb_url"`
Footer string `json:"footer"`
FooterIcon string `json:"footer_icon"`
- Timestamp int64 `json:"ts"`
+ Timestamp interface{} `json:"ts"` // This is either a string or an int64
}
type SlackAttachmentField struct {