From 92c0bd8f417500add380ec049734bfe83105ad9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 28 Feb 2026 21:00:05 -0500 Subject: [PATCH 1/2] feat: allow callers to parse topic teasers in different types --- src/topics/teaser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/topics/teaser.js b/src/topics/teaser.js index 03ea62b5c0..1ee9f0d437 100644 --- a/src/topics/teaser.js +++ b/src/topics/teaser.js @@ -17,9 +17,11 @@ module.exports = function (Topics) { } let uid = options; let { teaserPost } = meta.config; + let teaserParseType = 'plaintext'; if (typeof options === 'object') { uid = options.uid; teaserPost = options.teaserPost || meta.config.teaserPost; + teaserParseType = options.teaserParseType || 'plaintext'; } const counts = []; @@ -68,7 +70,7 @@ module.exports = function (Topics) { post.timestampISO = utils.toISOString(post.timestamp); tidToPost[post.tid] = post; }); - await Promise.all(postData.map(p => posts.parsePost(p, 'plaintext'))); + await Promise.all(postData.map(p => posts.parsePost(p, teaserParseType))); const teasers = topics.map((topic, index) => { if (!topic) { From 643991ab0330e6054a6af9a90b860cd5265768b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 28 Feb 2026 21:49:34 -0500 Subject: [PATCH 2/2] chore: up harmony --- install/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/package.json b/install/package.json index 091f652ba8..5547e7c64e 100644 --- a/install/package.json +++ b/install/package.json @@ -107,7 +107,7 @@ "nodebb-plugin-spam-be-gone": "2.3.2", "nodebb-plugin-web-push": "0.7.6", "nodebb-rewards-essentials": "1.0.2", - "nodebb-theme-harmony": "2.2.42", + "nodebb-theme-harmony": "2.2.43", "nodebb-theme-lavender": "7.1.21", "nodebb-theme-peace": "2.2.55", "nodebb-theme-persona": "14.2.21",