aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-17 20:53:09 -0700
committerFuwn <[email protected]>2023-09-17 20:53:09 -0700
commit0a4eaecd0e432beefb64f9147580f9bc9f843165 (patch)
tree12b79d01b1f1ec93823f8264127ef0eb97036774 /src/lib
parentfeat(feeds): decrease s-maxage (diff)
downloaddue.moe-0a4eaecd0e432beefb64f9147580f9bc9f843165.tar.xz
due.moe-0a4eaecd0e432beefb64f9147580f9bc9f843165.zip
feat(notifications): link to thread for threads
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/AniList/notifications.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/AniList/notifications.ts b/src/lib/AniList/notifications.ts
index 671f2146..b236e994 100644
--- a/src/lib/AniList/notifications.ts
+++ b/src/lib/AniList/notifications.ts
@@ -7,6 +7,7 @@ export interface Notification {
};
thread: {
title: string;
+ id: number;
};
context: string;
id: number;
@@ -31,7 +32,7 @@ export const notifications = async (accessToken: string): Promise<Notification[]
id user { name avatar { large } } context createdAt type
}`;
const threadNotification = (type: string) => `... on ${type} {
- id user { name avatar { large } } context createdAt type thread { title }
+ id user { name avatar { large } } context createdAt type thread { title id }
}`;
return (