aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-28 13:55:04 -0700
committerFuwn <[email protected]>2023-09-28 13:55:04 -0700
commit5dc953f9f329c4c63d0e0348bf75ce5c25242740 (patch)
tree36605f60401af2590b1ed54bc468855fce4f50bb /src
parentfeat(wrapped): add links to names (diff)
downloaddue.moe-5dc953f9f329c4c63d0e0348bf75ce5c25242740.tar.xz
due.moe-5dc953f9f329c4c63d0e0348bf75ce5c25242740.zip
fix(feeds): filter phantom activities
Diffstat (limited to 'src')
-rw-r--r--src/routes/feeds/activity-notifications/+server.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/routes/feeds/activity-notifications/+server.ts b/src/routes/feeds/activity-notifications/+server.ts
index 285d775b..06c55ace 100644
--- a/src/routes/feeds/activity-notifications/+server.ts
+++ b/src/routes/feeds/activity-notifications/+server.ts
@@ -17,6 +17,7 @@ const render = (posts: Notification[] = []) => `<?xml version="1.0" encoding="UT
<language>en-US</language>
<snf:logo><url>https://due.moe/favicon-192x192.png</url></snf:logo>
${posts
+ .filter((notification: Notification) => notification.type !== undefined)
.map((notification: Notification) => {
let title = `${notification.user.name} ${notification.context}`;
let link = `https://anilist.co/user/${notification.user.name}`;