From 495c79da1a8b44e226f564da9d52c4cdb87e1d89 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 2 Oct 2020 11:55:03 +0800 Subject: [PATCH] Revert "FIX: Use topic title headline in search menu result." This reverts commit 4b8c15b857665463e082de3d94abb1528448ac1e. This breaks topic title for topic similar search. --- .../javascripts/discourse/app/widgets/search-menu-results.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/app/widgets/search-menu-results.js b/app/assets/javascripts/discourse/app/widgets/search-menu-results.js index 159cba06517..d1981adf800 100644 --- a/app/assets/javascripts/discourse/app/widgets/search-menu-results.js +++ b/app/assets/javascripts/discourse/app/widgets/search-menu-results.js @@ -151,9 +151,7 @@ createSearchResult({ h( "span.topic-title", { attributes: { "data-topic-id": topic.id } }, - this.siteSettings.use_pg_headlines_for_excerpt - ? new RawHtml({ html: `${result.topic_title_headline}` }) - : new Highlighted(topic.fancyTitle, term) + new Highlighted(topic.fancyTitle, term) ), ];