summaryrefslogtreecommitdiffstats
path: root/api/export.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/export.go')
-rw-r--r--api/export.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/export.go b/api/export.go
index 2030b0723..b5da8937e 100644
--- a/api/export.go
+++ b/api/export.go
@@ -192,7 +192,7 @@ func ExportChannels(T goi18n.TranslateFunc, writer ExportWriter, options *Export
}
for _, channel := range channels {
- if err := ExportPosts(writer, options, channel.Id); err != nil {
+ if err := ExportPosts(T, writer, options, channel.Id); err != nil {
return err
}
}
@@ -200,10 +200,10 @@ func ExportChannels(T goi18n.TranslateFunc, writer ExportWriter, options *Export
return nil
}
-func ExportPosts(writer ExportWriter, options *ExportOptions, channelId string) *model.AppError {
+func ExportPosts(T goi18n.TranslateFunc, writer ExportWriter, options *ExportOptions, channelId string) *model.AppError {
// Get the posts
var posts []*model.Post
- if result := <-Srv.Store.Post().GetForExport(channelId); result.Err != nil {
+ if result := <-Srv.Store.Post().GetForExport(T, channelId); result.Err != nil {
return result.Err
} else {
posts = result.Data.([]*model.Post)