mirror of
https://github.com/discourse/discourse.git
synced 2025-04-26 01:44:33 +08:00
FIX: Use topic title headline in search menu result.
This commit is contained in:
parent
f4c4a2a7f1
commit
4b8c15b857
@ -151,7 +151,9 @@ createSearchResult({
|
|||||||
h(
|
h(
|
||||||
"span.topic-title",
|
"span.topic-title",
|
||||||
{ attributes: { "data-topic-id": topic.id } },
|
{ attributes: { "data-topic-id": topic.id } },
|
||||||
new Highlighted(topic.fancyTitle, term)
|
this.siteSettings.use_pg_headlines_for_excerpt
|
||||||
|
? new RawHtml({ html: `<span>${result.topic_title_headline}</span>` })
|
||||||
|
: new Highlighted(topic.fancyTitle, term)
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user