Revert "FIX: Use topic title headline in search menu result."

This reverts commit 4b8c15b857.

This breaks topic title for topic similar search.
This commit is contained in:
Guo Xiang Tan 2020-10-02 11:55:03 +08:00 committed by Alan Guo Xiang Tan
parent 4b8c15b857
commit 495c79da1a

View File

@ -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: `<span>${result.topic_title_headline}</span>` })
: new Highlighted(topic.fancyTitle, term)
new Highlighted(topic.fancyTitle, term)
),
];