diff options
Diffstat (limited to 'app/post.go')
-rw-r--r-- | app/post.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/post.go b/app/post.go index 78f56a607..a89a72e62 100644 --- a/app/post.go +++ b/app/post.go @@ -463,9 +463,9 @@ func SearchPostsInTeam(terms string, userId string, teamId string, isOrSearch bo return posts, nil } -func GetFileInfosForPost(postId string) ([]*model.FileInfo, *model.AppError) { +func GetFileInfosForPost(postId string, readFromMaster bool) ([]*model.FileInfo, *model.AppError) { pchan := Srv.Store.Post().GetSingle(postId) - fchan := Srv.Store.FileInfo().GetForPost(postId, true) + fchan := Srv.Store.FileInfo().GetForPost(postId, readFromMaster, true) var infos []*model.FileInfo if result := <-fchan; result.Err != nil { |