From b8a46a161d37a9b699c1aaa1212e0260e8879acd Mon Sep 17 00:00:00 2001 From: karasu Date: Fri, 25 Oct 2024 00:07:59 +0800 Subject: [PATCH] fix(route/sorrycc): add pubDate (#17277) --- lib/routes/sorrycc/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/routes/sorrycc/index.ts b/lib/routes/sorrycc/index.ts index f9f3d6cc5..6d96a4db9 100644 --- a/lib/routes/sorrycc/index.ts +++ b/lib/routes/sorrycc/index.ts @@ -46,7 +46,7 @@ async function handler(ctx: Context): Promise { data.map(async (item) => { const title = item.title.rendered; const link = item.link; - const published = parseDate(item.date_gmt); + const pubDate = parseDate(item.date_gmt); const updated = parseDate(item.modified_gmt); if (item.categories.includes(7) && cookie) { return (await cache.tryGet(link, async () => { @@ -61,7 +61,7 @@ async function handler(ctx: Context): Promise { title, description, link, - published, + pubDate, updated, }; })) as unknown as DataItem; @@ -70,7 +70,7 @@ async function handler(ctx: Context): Promise { title, description: item.content.rendered, link, - published, + pubDate, updated, } as DataItem; })