From ccfca1ad194bd8b00777fbca8fdd4eb7248d6e85 Mon Sep 17 00:00:00 2001 From: Keo Date: Wed, 19 Nov 2025 01:55:34 +0800 Subject: [PATCH] fix(route/ntrblog): use utils/got to get feed content (#20511) --- lib/routes/ntrblog/articles.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/routes/ntrblog/articles.ts b/lib/routes/ntrblog/articles.ts index 5f0d1468a..5ffe9360b 100644 --- a/lib/routes/ntrblog/articles.ts +++ b/lib/routes/ntrblog/articles.ts @@ -35,7 +35,8 @@ export const route: Route = { }; async function handler(): Promise { - 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) => {