mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-12 08:10:32 +08:00
fix a problem reported by DeepScan
This commit is contained in:
@@ -33,12 +33,12 @@ module.exports = async (ctx) => {
|
||||
link: `https://www.zhihu.com/${usertype}/${id}/posts`,
|
||||
description: `${authordescription}`,
|
||||
item:
|
||||
list &&
|
||||
list.length>0 &&
|
||||
list.map((item) => ({
|
||||
title: String(item.title),
|
||||
description: `${item.content}`,
|
||||
link: `${item.url}`,
|
||||
pubDate: new Date(item.updated).toUTCString(),
|
||||
})),
|
||||
title: String(item.title),
|
||||
description: `${item.content}`,
|
||||
link: `${item.url}`,
|
||||
pubDate: new Date(item.updated).toUTCString(),
|
||||
})),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user