diff options
Diffstat (limited to 'app/file.go')
-rw-r--r-- | app/file.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/file.go b/app/file.go index 2ac3c398a..b678475c9 100644 --- a/app/file.go +++ b/app/file.go @@ -319,7 +319,7 @@ func MigrateFilenamesToFileInfos(post *model.Post) []*model.FileInfo { return []*model.FileInfo{} } else if newPost := result.Data.(*model.PostList).Posts[post.Id]; len(newPost.Filenames) != len(post.Filenames) { // Another thread has already created FileInfos for this post, so just return those - if result := <-Srv.Store.FileInfo().GetForPost(post.Id, false); result.Err != nil { + if result := <-Srv.Store.FileInfo().GetForPost(post.Id, true, false); result.Err != nil { l4g.Error(utils.T("api.file.migrate_filenames_to_file_infos.get_post_file_infos_again.app_error"), post.Id, result.Err) return []*model.FileInfo{} } else { |