summaryrefslogtreecommitdiffstats
path: root/api/import.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/import.go')
-rw-r--r--api/import.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/import.go b/api/import.go
index 7c4770327..0b31d05a3 100644
--- a/api/import.go
+++ b/api/import.go
@@ -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)
}
}