From 45464234277394c9debd272749552ed4c312c908 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Thu, 27 Sep 2018 12:11:19 -0700 Subject: Fixing non elastic search paging. (#9471) --- app/post.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/post.go') diff --git a/app/post.go b/app/post.go index da6f7ac2b..474862b66 100644 --- a/app/post.go +++ b/app/post.go @@ -726,6 +726,11 @@ func (a *App) SearchPostsInTeam(terms string, userId string, teamId string, isOr return nil, model.NewAppError("SearchPostsInTeam", "store.sql_post.search.disabled", nil, fmt.Sprintf("teamId=%v userId=%v", teamId, userId), http.StatusNotImplemented) } + // Since we don't support paging we just return nothing for later pages + if page > 0 { + return model.MakePostSearchResults(model.NewPostList(), nil), nil + } + channels := []store.StoreChannel{} for _, params := range paramsList { -- cgit v1.2.3-1-g7c22