Force fresh timestamp for CreateAt field of Posts before saving to DB.

This commit is contained in:
JoramWilander
2015-08-27 15:07:39 -04:00
parent db7e8c1288
commit cf58f95854

View File

@@ -120,9 +120,7 @@ func (o *Post) PreSave() {
o.OriginalId = ""
if o.CreateAt <= 0 {
o.CreateAt = GetMillis()
}
o.CreateAt = GetMillis()
o.UpdateAt = o.CreateAt
if o.Props == nil {