diff options
Diffstat (limited to 'app/post.go')
-rw-r--r-- | app/post.go | 5 |
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 { |