Merge pull request #906 from teviot/teviot-patch-2

Pass-through post creation time when importing posts
Этот коммит содержится в:
Christopher Speller
2015-10-02 08:50:23 -04:00
родитель 08d390953a fc82f57102
Коммит 92404d6452
3 изменённых файлов: 19 добавлений и 1 удалений

Просмотреть файл

@@ -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