aboutsummaryrefslogtreecommitdiff
path: root/src/lib/AniList/forum.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/AniList/forum.ts')
-rw-r--r--src/lib/AniList/forum.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/AniList/forum.ts b/src/lib/AniList/forum.ts
index 5085f3d8..e13528b5 100644
--- a/src/lib/AniList/forum.ts
+++ b/src/lib/AniList/forum.ts
@@ -4,6 +4,11 @@ export interface Thread {
id: number;
title: string;
createdAt: number;
+ mediaCategories: {
+ coverImage: {
+ extraLarge: string;
+ };
+ }[];
}
export interface ThreadPage {
@@ -28,7 +33,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 }
+ threads(userId: ${userId}) { id title createdAt mediaCategories { coverImage { extraLarge } } }
pageInfo { hasNextPage }
} }`
})