Skip to content

Commit

Permalink
fix(parameter): tighter condition for fulltext mode
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyRL committed Feb 1, 2023
1 parent 3a47393 commit 117b71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware/parameter.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,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);
}
Expand Down

0 comments on commit 117b71e

Please sign in to comment.