diff options
author | Teviot Systems <oss@teviot.com.au> | 2015-10-02 20:16:27 +1000 |
---|---|---|
committer | Teviot Systems <oss@teviot.com.au> | 2015-10-02 20:16:27 +1000 |
commit | fc82f57102ae4b8f89d8ad65ae3097aba9891272 (patch) | |
tree | 238630b1b6050dab81480dd7eaa03851222bfc45 /api/post.go | |
parent | 9083f0b15c8a2f842eb6ed54f14ecdfb4808dbe2 (diff) | |
download | chat-fc82f57102ae4b8f89d8ad65ae3097aba9891272.tar.gz chat-fc82f57102ae4b8f89d8ad65ae3097aba9891272.tar.bz2 chat-fc82f57102ae4b8f89d8ad65ae3097aba9891272.zip |
Pass-through post creation time when importing posts
Diffstat (limited to 'api/post.go')
-rw-r--r-- | api/post.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/post.go b/api/post.go index 2b683fb7d..65dad0eb6 100644 --- a/api/post.go +++ b/api/post.go @@ -88,6 +88,8 @@ func CreatePost(c *Context, post *model.Post, doUpdateLastViewed bool) (*model.P } } + post.CreateAt = 0 + post.Hashtags, _ = model.ParseHashtags(post.Message) post.UserId = c.Session.UserId |