PLT-7 adding loc db calls for posts table

Этот коммит содержится в:
=Corey Hulen
2016-01-20 10:34:31 -06:00
родитель 3ac5ecf0e9
Коммит aac8d121a0
10 изменённых файлов: 182 добавлений и 181 удалений

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

@@ -14,10 +14,10 @@ import (
// some of the usual checks. (IsValid is still run)
//
func ImportPost(post *model.Post) {
func ImportPost(T goi18n.TranslateFunc, post *model.Post) {
post.Hashtags, _ = model.ParseHashtags(post.Message)
if result := <-Srv.Store.Post().Save(post); result.Err != nil {
if result := <-Srv.Store.Post().Save(T, post); result.Err != nil {
l4g.Debug("Error saving post. user=" + post.UserId + ", message=" + post.Message)
}
}