[MM-15925] Add includeDeleted flag to GetForPost in FileInfoStore (#11585)

Этот коммит содержится в:
Miguel de la Cruz
2019-07-15 08:54:30 +02:00
коммит произвёл GitHub
родитель c1f3c83d38
Коммит 8f4e03a52b
8 изменённых файлов: 119 добавлений и 39 удалений

Просмотреть файл

@@ -1087,7 +1087,7 @@ func (a *App) GetFileInfosForPostWithMigration(postId string) ([]*model.FileInfo
}
func (a *App) GetFileInfosForPost(postId string, fromMaster bool) ([]*model.FileInfo, *model.AppError) {
return a.Srv.Store.FileInfo().GetForPost(postId, fromMaster, true)
return a.Srv.Store.FileInfo().GetForPost(postId, fromMaster, false, true)
}
func (a *App) PostWithProxyAddedToImageURLs(post *model.Post) *model.Post {