diff options
Diffstat (limited to 'store/sql_post_store.go')
-rw-r--r-- | store/sql_post_store.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/store/sql_post_store.go b/store/sql_post_store.go index 16142681c..e89b5e042 100644 --- a/store/sql_post_store.go +++ b/store/sql_post_store.go @@ -910,8 +910,7 @@ func (s SqlPostStore) Search(teamId string, userId string, params *model.SearchP result := StoreResult{} if !*utils.Cfg.ServiceSettings.EnablePostSearch { - list := &model.PostList{} - list.MakeNonNil() + list := model.NewPostList() result.Data = list result.Err = model.NewLocAppError("SqlPostStore.Search", "store.sql_post.search.disabled", nil, fmt.Sprintf("teamId=%v userId=%v params=%v", teamId, userId, params.ToJson())) |