Skip to content

Node.js based forum software built for the modern web

fix: no need to pass 'img' to teaser tags stripping as images are already converted to alt text

Julian Lam45c9dde31915
diff --git a/src/topics/teaser.js b/src/topics/teaser.js
index f5815f8deb..1ebf1d2fb1 100644
--- a/src/topics/teaser.js
+++ b/src/topics/teaser.js
@@ -70,7 +70,7 @@ module.exports = function (Topics) {
});
await Promise.all(postData.map(p => posts.parsePost(p)));
- const { tags } = await plugins.hooks.fire('filter:teasers.configureStripTags', { tags: utils.stripTags.concat(['img']) });
+ const { tags } = await plugins.hooks.fire('filter:teasers.configureStripTags', { tags: utils.stripTags.slice(0) });
const teasers = topics.map((topic, index) => {
if (!topic) {