diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-07-07 09:16:13 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-08-19 08:52:49 -0400 |
commit | d78ebab108942058a100e0f607771c4addafb698 (patch) | |
tree | e15ea58c83979e003556e063460368f509a5ebd5 /model | |
parent | 7004a348b59d5572e8c84eb1c8138bf45cbd0d3e (diff) | |
download | chat-d78ebab108942058a100e0f607771c4addafb698.tar.gz chat-d78ebab108942058a100e0f607771c4addafb698.tar.bz2 chat-d78ebab108942058a100e0f607771c4addafb698.zip |
Implemention of slack import feature.
Diffstat (limited to 'model')
-rw-r--r-- | model/post.go | 4 |
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 { |