summaryrefslogtreecommitdiffstats
path: root/model/post.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-07-07 09:16:13 -0400
committerChristopher Speller <crspeller@gmail.com>2015-08-19 08:52:49 -0400
commitd78ebab108942058a100e0f607771c4addafb698 (patch)
treee15ea58c83979e003556e063460368f509a5ebd5 /model/post.go
parent7004a348b59d5572e8c84eb1c8138bf45cbd0d3e (diff)
downloadchat-d78ebab108942058a100e0f607771c4addafb698.tar.gz
chat-d78ebab108942058a100e0f607771c4addafb698.tar.bz2
chat-d78ebab108942058a100e0f607771c4addafb698.zip
Implemention of slack import feature.
Diffstat (limited to 'model/post.go')
-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 {