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

This commit is contained in:
Julian Lam
2021-12-10 10:18:16 -05:00
parent de1ed01d81
commit 45c9dde319

View File

@@ -70,7 +70,7 @@ module.exports = function (Topics) {
}); });
await Promise.all(postData.map(p => posts.parsePost(p))); 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) => { const teasers = topics.map((topic, index) => {
if (!topic) { if (!topic) {