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
+1 -1
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 {