From ec68dc303c09755f747302f1f1b319f137f3d258 Mon Sep 17 00:00:00 2001 From: Naz Date: Thu, 7 Jul 2022 12:55:08 +0200 Subject: [PATCH] Removed plaintext formats from posts request refs https://github.com/TryGhost/Team/issues/1665 refs https://github.com/TryGhost/Ghost/issues/10396 - Content API has been updated to return clean results for `excerpt` without require a hacky "&formats=plaintext" parameter --- ghost/sodo-search/src/search-index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ghost/sodo-search/src/search-index.js b/ghost/sodo-search/src/search-index.js index c0a930567e..8d820003c4 100644 --- a/ghost/sodo-search/src/search-index.js +++ b/ghost/sodo-search/src/search-index.js @@ -57,8 +57,7 @@ export default class SearchIndex { let posts = await this.api.posts.browse({ limit: 'all', fields: 'id,slug,title,excerpt,url,updated_at,visibility', - order: 'updated_at DESC', - formats: 'plaintext' + order: 'updated_at DESC' }); if (posts || posts.length > 0) {