summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-10-02 08:50:23 -0400
committerChristopher Speller <crspeller@gmail.com>2015-10-02 08:50:23 -0400
commit92404d6452758941ec96a559f7d8eee794fb1001 (patch)
tree37cd1c713f5b4934693cd76e1d8f621364180840 /api
parent08d390953a822371380b4264c3fb4cf891440995 (diff)
parentfc82f57102ae4b8f89d8ad65ae3097aba9891272 (diff)
downloadchat-92404d6452758941ec96a559f7d8eee794fb1001.tar.gz
chat-92404d6452758941ec96a559f7d8eee794fb1001.tar.bz2
chat-92404d6452758941ec96a559f7d8eee794fb1001.zip
Merge pull request #906 from teviot/teviot-patch-2
Pass-through post creation time when importing posts
Diffstat (limited to 'api')
-rw-r--r--api/post.go2
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