fix(route/fanbox): add withPinned query param

This commit is contained in:
pseudoyu 2026-03-27 18:12:15 +08:00
parent 14db97e109
commit a7ca7c558c
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ async function handler(ctx: Context): Promise<Data> {
// ignore
}
const postListResponse = (await ofetch(`https://api.fanbox.cc/post.listCreator?creatorId=${creator}&limit=20`, { headers: getHeaders() })) as PostListResponse;
const postListResponse = (await ofetch(`https://api.fanbox.cc/post.listCreator?creatorId=${creator}&limit=20&withPinned=true`, { headers: getHeaders() })) as PostListResponse;
const items = await Promise.all(postListResponse.body.map((i) => parseItem(i)));
return {