fix(route/sorrycc): add pubDate (#17277)

This commit is contained in:
karasu
2024-10-25 00:07:59 +08:00
committed by GitHub
parent 32bebcaff9
commit b8a46a161d
+3 -3
View File
@@ -46,7 +46,7 @@ async function handler(ctx: Context): Promise<Data> {
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<Data> {
title,
description,
link,
published,
pubDate,
updated,
};
})) as unknown as DataItem;
@@ -70,7 +70,7 @@ async function handler(ctx: Context): Promise<Data> {
title,
description: item.content.rendered,
link,
published,
pubDate,
updated,
} as DataItem;
})