aboutsummaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/feeds/activity-notifications/+server.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/routes/feeds/activity-notifications/+server.ts b/src/routes/feeds/activity-notifications/+server.ts
index 249ba985..e72482e8 100644
--- a/src/routes/feeds/activity-notifications/+server.ts
+++ b/src/routes/feeds/activity-notifications/+server.ts
@@ -20,6 +20,7 @@ export const GET = async ({ url }) => {
${posts
.map((notification: Notification) => {
let title = `${notification.user.name} ${notification.context}`;
+ let link = `https://anilist.co/user/${notification.user.name}`;
const prettyType = notification.type
.toString()
.replace(/_/g, ' ')
@@ -30,12 +31,13 @@ export const GET = async ({ url }) => {
if (notification.type.toString().includes('THREAD')) {
title += `${notification.thread.title}`;
+ link = `https://anilist.co/forum/thread/${notification.thread.id}`;
}
return `<item>
<guid>${notification.id}</guid>
<title>${title}</title>
-<link>https://anilist.co/user/${notification.user.name}</link>
+<link>${link}</link>
<author>${notification.user.name}</author>
<enclosure url="${notification.user.avatar.large}" type="image/png" />
<category>${prettyType}</category>