aboutsummaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/feeds/activity-notifications/+server.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/routes/feeds/activity-notifications/+server.ts b/src/routes/feeds/activity-notifications/+server.ts
index ca1464bd..32a626a7 100644
--- a/src/routes/feeds/activity-notifications/+server.ts
+++ b/src/routes/feeds/activity-notifications/+server.ts
@@ -39,8 +39,10 @@ const render = (posts: Notification[] = []) => `<?xml version="1.0" encoding="UT
) {
link = `https://anilist.co/activity/${notification.activity.id}`;
} else if (notification.type.toString().includes('THREAD')) {
- title += `${notification.thread.title || notification.thread.id}`;
- link = `https://anilist.co/forum/thread/${notification.thread.id}`;
+ title += `${notification.thread ? notification.thread.title : notification.activity.id}`;
+ link = `https://anilist.co/${notification.thread ? 'forum/thread' : 'activity'}/${
+ notification.thread ? notification.thread.id : notification.activity.id
+ }`;
}
return `<item>