From 92cb64dfe14413aef62cb7d23d4de206d90a7b87 Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 23 Jun 2025 01:32:23 +0800 Subject: [PATCH] fix(route/fanbox): use rsshub ua (#19433) --- lib/routes/fanbox/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/fanbox/utils.ts b/lib/routes/fanbox/utils.ts index c7c757d30..846a700fe 100644 --- a/lib/routes/fanbox/utils.ts +++ b/lib/routes/fanbox/utils.ts @@ -166,7 +166,7 @@ async function parseDetail(i: PostDetailResponse['body']) { export function parseItem(item: PostItem) { return cache.tryGet(`fanbox-${item.id}-${item.updatedDatetime}`, async () => { - const postDetail = (await ofetch(`https://api.fanbox.cc/post.info?postId=${item.id}`, { headers: getHeaders() })) as PostDetailResponse; + const postDetail = (await ofetch(`https://api.fanbox.cc/post.info?postId=${item.id}`, { headers: { ...getHeaders(), 'User-Agent': config.trueUA } })) as PostDetailResponse; return { title: item.title || `No title`, description: await parseDetail(postDetail.body),