mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +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`,
|
link: `https://www.zhihu.com/${usertype}/${id}/posts`,
|
||||||
description: `${authordescription}`,
|
description: `${authordescription}`,
|
||||||
item:
|
item:
|
||||||
list &&
|
list.length>0 &&
|
||||||
list.map((item) => ({
|
list.map((item) => ({
|
||||||
title: String(item.title),
|
title: String(item.title),
|
||||||
description: `${item.content}`,
|
description: `${item.content}`,
|
||||||
link: `${item.url}`,
|
link: `${item.url}`,
|
||||||
pubDate: new Date(item.updated).toUTCString(),
|
pubDate: new Date(item.updated).toUTCString(),
|
||||||
})),
|
})),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user