From fc82f57102ae4b8f89d8ad65ae3097aba9891272 Mon Sep 17 00:00:00 2001 From: Teviot Systems Date: Fri, 2 Oct 2015 20:16:27 +1000 Subject: Pass-through post creation time when importing posts --- api/post.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api') 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 -- cgit v1.2.3-1-g7c22