Speed up search results post selection. (#9380)

Этот коммит содержится в:
Christopher Speller
2018-09-10 06:20:01 -07:00
коммит произвёл Carlos Tadeu Panato Junior
родитель bb605a6b91
Коммит a8d116b381
3 изменённых файлов: 7 добавлений и 5 удалений

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

@@ -705,8 +705,10 @@ func (a *App) SearchPostsInTeam(terms string, userId string, teamId string, isOr
return nil, presult.Err
} else {
for _, p := range presult.Data.([]*model.Post) {
postList.AddPost(p)
postList.AddOrder(p.Id)
if p.DeleteAt == 0 {
postList.AddPost(p)
postList.AddOrder(p.Id)
}
}
}
}