summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-08-18 09:19:29 -0400
committerChristopher Speller <crspeller@gmail.com>2015-08-18 09:19:29 -0400
commit532be141bae8ff2ea03de4fa54affd6e72dab9ea (patch)
treefb0f76405960217477f4f91212da395543b84657 /model
parent4805608cc9cf79277f37b94bbe38398816469884 (diff)
parentf4c2a9244c72786cc9a90597d9cb373e0cfee4c7 (diff)
downloadchat-532be141bae8ff2ea03de4fa54affd6e72dab9ea.tar.gz
chat-532be141bae8ff2ea03de4fa54affd6e72dab9ea.tar.bz2
chat-532be141bae8ff2ea03de4fa54affd6e72dab9ea.zip
Merge pull request #380 from mattermost/mm-319
MM-319 adding pending post functionality to the client
Diffstat (limited to 'model')
-rw-r--r--model/post.go31
1 files changed, 16 insertions, 15 deletions
diff --git a/model/post.go b/model/post.go
index f6f33b1e8..0c035d4e7 100644
--- a/model/post.go
+++ b/model/post.go
@@ -14,21 +14,22 @@ const (
)
type Post struct {
- Id string `json:"id"`
- CreateAt int64 `json:"create_at"`
- UpdateAt int64 `json:"update_at"`
- DeleteAt int64 `json:"delete_at"`
- UserId string `json:"user_id"`
- ChannelId string `json:"channel_id"`
- RootId string `json:"root_id"`
- ParentId string `json:"parent_id"`
- OriginalId string `json:"original_id"`
- Message string `json:"message"`
- ImgCount int64 `json:"img_count"`
- Type string `json:"type"`
- Props StringMap `json:"props"`
- Hashtags string `json:"hashtags"`
- Filenames StringArray `json:"filenames"`
+ Id string `json:"id"`
+ CreateAt int64 `json:"create_at"`
+ UpdateAt int64 `json:"update_at"`
+ DeleteAt int64 `json:"delete_at"`
+ UserId string `json:"user_id"`
+ ChannelId string `json:"channel_id"`
+ RootId string `json:"root_id"`
+ ParentId string `json:"parent_id"`
+ OriginalId string `json:"original_id"`
+ Message string `json:"message"`
+ ImgCount int64 `json:"img_count"`
+ Type string `json:"type"`
+ Props StringMap `json:"props"`
+ Hashtags string `json:"hashtags"`
+ Filenames StringArray `json:"filenames"`
+ PendingPostId string `json:"pending_post_id" db:"-"`
}
func (o *Post) ToJson() string {