From 59f3576a8e2e8c4601540d542d4f0dae7d7c98e6 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 20 May 2020 01:59:45 +0800 Subject: [PATCH] fix: typo --- lib/routes/bilibili/ranking.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/bilibili/ranking.js b/lib/routes/bilibili/ranking.js index 2e8f7d22b..2329597a4 100644 --- a/lib/routes/bilibili/ranking.js +++ b/lib/routes/bilibili/ranking.js @@ -35,9 +35,9 @@ module.exports = async (ctx) => { item: list.map((item) => ({ title: item.title, description: `${item.description || item.title}${!disableEmbed ? `

${utils.iframe(item.aid, null, item.bvid)}` : ''}
`, - pubDate: data.create && new Date(data.create).toUTCString(), + pubDate: item.create && new Date(item.create).toUTCString(), author: item.author, - link: !data.create || (new Date(data.create) / 1000 > utils.bvidTime && item.bvid) ? `https://www.bilibili.com/video/${item.bvid}` : `https://www.bilibili.com/video/av${item.aid}`, + link: !item.create || (new Date(item.create) / 1000 > utils.bvidTime && item.bvid) ? `https://www.bilibili.com/video/${item.bvid}` : `https://www.bilibili.com/video/av${item.aid}`, })), }; };