aboutsummaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/feeds/activity-notifications/+server.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/routes/feeds/activity-notifications/+server.ts b/src/routes/feeds/activity-notifications/+server.ts
index e72482e8..94ff60c0 100644
--- a/src/routes/feeds/activity-notifications/+server.ts
+++ b/src/routes/feeds/activity-notifications/+server.ts
@@ -29,7 +29,12 @@ export const GET = async ({ url }) => {
return text.charAt(0).toUpperCase() + text.substr(1).toLowerCase();
});
- if (notification.type.toString().includes('THREAD')) {
+ if (
+ !['FOLLOWING', 'ACTIVITY_MESSAGE'].includes(notification.type.toString()) &&
+ !notification.type.toString().includes('THREAD')
+ ) {
+ link = `https://anilist.co/activity/${notification.activity.id}`;
+ } else if (notification.type.toString().includes('THREAD')) {
title += `${notification.thread.title}`;
link = `https://anilist.co/forum/thread/${notification.thread.id}`;
}