diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-03-10 05:22:14 -0500 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-03-10 10:22:14 +0000 |
commit | 06a7c3ba8e054237c44e8b1586c76d00c1cffb67 (patch) | |
tree | 396ae2313e89bef2c8c8de4ac0fc3d3273f0077d /model | |
parent | 06930f378cd61c72f0ba9b0718bc54eea0c30406 (diff) | |
download | chat-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')
-rw-r--r-- | model/slack_attachment.go | 3 |
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 { |