summaryrefslogtreecommitdiffstats
path: root/app/post.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2018-09-27 12:11:19 -0700
committerHarrison Healey <harrisonmhealey@gmail.com>2018-09-27 15:11:19 -0400
commit45464234277394c9debd272749552ed4c312c908 (patch)
treeaf4e20925d8900c0bf8a347e6f63b7c8189e5806 /app/post.go
parent15d9f10f431d6091202c262df0aec30923ade5b7 (diff)
downloadchat-45464234277394c9debd272749552ed4c312c908.tar.gz
chat-45464234277394c9debd272749552ed4c312c908.tar.bz2
chat-45464234277394c9debd272749552ed4c312c908.zip
Fixing non elastic search paging. (#9471)
Diffstat (limited to 'app/post.go')
-rw-r--r--app/post.go5
1 files changed, 5 insertions, 0 deletions
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 {