summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-08-19 12:19:02 -0400
committerJoram Wilander <jwawilander@gmail.com>2015-08-19 12:19:02 -0400
commit5f439458059c94054c2e41b7bf21234008830709 (patch)
tree00a46bcf2112cf38f70deeb1acae6c6424f472cc /model
parentca6bff340d2319ee86828de3591f010a66ffa8f9 (diff)
parent9222e191aab9397b6a7c6713d1b0b0b96b421de7 (diff)
downloadchat-5f439458059c94054c2e41b7bf21234008830709.tar.gz
chat-5f439458059c94054c2e41b7bf21234008830709.tar.bz2
chat-5f439458059c94054c2e41b7bf21234008830709.zip
Merge pull request #394 from mattermost/mm-1410
MM-1410 Initial implementaiton of import from Slack
Diffstat (limited to 'model')
-rw-r--r--model/post.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/model/post.go b/model/post.go
index 0c035d4e7..f8a3032a3 100644
--- a/model/post.go
+++ b/model/post.go
@@ -120,7 +120,9 @@ func (o *Post) PreSave() {
o.OriginalId = ""
- o.CreateAt = GetMillis()
+ if o.CreateAt <= 0 {
+ o.CreateAt = GetMillis()
+ }
o.UpdateAt = o.CreateAt
if o.Props == nil {