From d78ebab108942058a100e0f607771c4addafb698 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 7 Jul 2015 09:16:13 -0400 Subject: Implemention of slack import feature. --- model/post.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'model/post.go') 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 { -- cgit v1.2.3-1-g7c22