mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
fix: update rss pubDate to prioritize modDatetime if exists
This commit is contained in:
@@ -14,7 +14,7 @@ export async function GET() {
|
|||||||
link: `posts/${slug}`,
|
link: `posts/${slug}`,
|
||||||
title: data.title,
|
title: data.title,
|
||||||
description: data.description,
|
description: data.description,
|
||||||
pubDate: new Date(data.pubDatetime),
|
pubDate: new Date(data.modDatetime ?? data.pubDatetime),
|
||||||
})),
|
})),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user