mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: no need to pass 'img' to teaser tags stripping as images are already converted to alt text
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user