mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Changed how posts are marked ephemeral
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user