mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-06 05:03:44 +08:00
fix(middleware): simplecc null description (#8053)
This commit is contained in:
@@ -235,8 +235,8 @@ module.exports = async (ctx, next) => {
|
||||
// opencc
|
||||
if (ctx.query.opencc) {
|
||||
ctx.state.data.item.forEach((item) => {
|
||||
item.title = simplecc(item.title, ctx.query.opencc);
|
||||
item.description = simplecc(item.description, ctx.query.opencc);
|
||||
item.title = simplecc(item.title ?? item.link, ctx.query.opencc);
|
||||
item.description = simplecc(item.description ?? item.title ?? item.link, ctx.query.opencc);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user