summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
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 {