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