summaryrefslogtreecommitdiffstats
path: root/model/post.go
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2016-02-03 12:12:10 -0500
committerhmhealey <harrisonmhealey@gmail.com>2016-02-04 11:38:58 -0500
commit70c3715b963cd8f2a710f8909f23696f9de7fcc7 (patch)
tree55077777c2bbb4e5d0f6f41d9e2d12e3668d02c4 /model/post.go
parent994358c31a93296a225f7d34942bbedfeac025c4 (diff)
downloadchat-70c3715b963cd8f2a710f8909f23696f9de7fcc7.tar.gz
chat-70c3715b963cd8f2a710f8909f23696f9de7fcc7.tar.bz2
chat-70c3715b963cd8f2a710f8909f23696f9de7fcc7.zip
Changed how posts are marked ephemeral
Diffstat (limited to 'model/post.go')
-rw-r--r--model/post.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/model/post.go b/model/post.go
index cc9b0bda4..8a451831c 100644
--- a/model/post.go
+++ b/model/post.go
@@ -10,12 +10,13 @@ import (
)
const (
- POST_SYSTEM_MESSAGE_PREFIX = "system_"
- POST_DEFAULT = ""
- POST_SLACK_ATTACHMENT = "slack_attachment"
- POST_JOIN_LEAVE = "system_join_leave"
- POST_HEADER_CHANGE = "system_header_change"
- POST_OUT_OF_CHANNEL_MENTION = "system_out_of_channel_mention"
+ POST_SYSTEM_MESSAGE_PREFIX = "system_"
+ POST_DEFAULT = ""
+ POST_SLACK_ATTACHMENT = "slack_attachment"
+ POST_SYSTEM_GENERIC = "system_generic"
+ POST_JOIN_LEAVE = "system_join_leave"
+ POST_HEADER_CHANGE = "system_header_change"
+ POST_EPHEMERAL = "system_ephemeral"
)
type Post struct {
@@ -34,7 +35,6 @@ type Post struct {
Hashtags string `json:"hashtags"`
Filenames StringArray `json:"filenames"`
PendingPostId string `json:"pending_post_id" db:"-"`
- Ephemeral bool `json:"ephemeral" db:"-"`
}
func (o *Post) ToJson() string {