aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Data
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-12-17 03:20:49 -0800
committerFuwn <[email protected]>2025-12-17 03:20:49 -0800
commit142233828857124091f108f74646fc08ddbb3773 (patch)
tree5981c7731ba10933a18edf1d209970ccc888dae1 /src/lib/Data
parentfix(Wrapped): Improve data loading (diff)
downloaddue.moe-142233828857124091f108f74646fc08ddbb3773.tar.xz
due.moe-142233828857124091f108f74646fc08ddbb3773.zip
fix(EpisodeDiscussionCollector): Improve filtering
Diffstat (limited to 'src/lib/Data')
-rw-r--r--src/lib/Data/AniList/forum.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Data/AniList/forum.ts b/src/lib/Data/AniList/forum.ts
index a96b74ca..b2467c9e 100644
--- a/src/lib/Data/AniList/forum.ts
+++ b/src/lib/Data/AniList/forum.ts
@@ -11,6 +11,9 @@ export interface Thread {
medium: string;
};
}[];
+ categories: {
+ name: string;
+ }[];
}
export interface ThreadPage {
@@ -35,7 +38,7 @@ const threadPage = async (page: number, userId: number): Promise<ThreadPage> =>
},
body: JSON.stringify({
query: `{ Page(perPage: 50, page: ${page}) {
- threads(userId: ${userId}) { id title createdAt mediaCategories { coverImage { extraLarge medium } } }
+ threads(userId: ${userId}) { id title createdAt mediaCategories { coverImage { extraLarge medium } } categories { name } }
pageInfo { hasNextPage }
} }`
})