From 5dc953f9f329c4c63d0e0348bf75ce5c25242740 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 28 Sep 2023 13:55:04 -0700 Subject: fix(feeds): filter phantom activities --- src/routes/feeds/activity-notifications/+server.ts | 1 + 1 file changed, 1 insertion(+) 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[] = []) => `en-US https://due.moe/favicon-192x192.png ${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}`; -- cgit v1.2.3