fix(route/ntrblog): use utils/got to get feed content (#20511)

This commit is contained in:
Keo
2025-11-19 01:55:34 +08:00
committed by GitHub
parent 5bf337b2f3
commit ccfca1ad19
+2 -1
View File
@@ -35,7 +35,8 @@ export const route: Route = {
};
async function handler(): Promise<Data> {
const feed = await parser.parseURL('https://ntrblog.com/atom.xml');
const rsp = await got('https://ntrblog.com/atom.xml');
const feed = await parser.parseString(rsp.data);
const items = await Promise.all(
feed.items.map((item) => {