fix(parameter): tighter condition for fulltext mode (#11750)

This commit is contained in:
Tony
2023-02-01 11:38:01 +00:00
committed by GitHub
parent 58ecf7ae28
commit 14c1647724

View File

@@ -273,7 +273,7 @@ module.exports = async (ctx, next) => {
});
item.author = author || (parsed_result ? parsed_result.author : '');
item.description = parsed_result ? entities.decodeXML(parsed_result.content) : description;
item.description = parsed_result && parsed_result.content.length > 40 ? entities.decodeXML(parsed_result.content) : description;
});
await Promise.all(tasks);
}