fix(route/fanbox): use rsshub ua (#19433)
This commit is contained in:
parent
d6ea75914f
commit
92cb64dfe1
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue