summaryrefslogtreecommitdiffstats
path: root/app/post.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/post.go')
-rw-r--r--app/post.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/post.go b/app/post.go
index 299c9ce3a..0ce1bbe2d 100644
--- a/app/post.go
+++ b/app/post.go
@@ -648,7 +648,7 @@ func (a *App) DeletePostFiles(post *model.Post) {
func (a *App) SearchPostsInTeam(terms string, userId string, teamId string, isOrSearch bool, includeDeletedChannels bool) (*model.PostSearchResults, *model.AppError) {
paramsList := model.ParseSearchParams(terms)
- includeDeleted := includeDeletedChannels && *a.Config().TeamSettings.ViewArchivedChannels
+ includeDeleted := includeDeletedChannels && *a.Config().TeamSettings.ExperimentalViewArchivedChannels
esInterface := a.Elasticsearch
if license := a.License(); esInterface != nil && *a.Config().ElasticsearchSettings.EnableSearching && license != nil && *license.Features.Elasticsearch {