diff options
author | Corey Hulen <corey@hulen.com> | 2017-02-20 13:40:32 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-02-20 13:40:32 -0500 |
commit | 274b9b6032572dd33b28815a9c13bb18a02becbe (patch) | |
tree | 1fd47c65c854117d698d92b5cef701b59d4f9ebc /app/post.go | |
parent | dd4d8440eac2e4b64bfb6b449cc0668b78ecba50 (diff) | |
download | chat-274b9b6032572dd33b28815a9c13bb18a02becbe.tar.gz chat-274b9b6032572dd33b28815a9c13bb18a02becbe.tar.bz2 chat-274b9b6032572dd33b28815a9c13bb18a02becbe.zip |
Fixing file info caching issue with Aurora for master (#5477)
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 { |