diff options
| author | Fuwn <[email protected]> | 2024-01-03 06:22:20 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-03 06:22:20 -0800 |
| commit | 8d3eef544c4249ba2148224f661389546a27e75f (patch) | |
| tree | 98efeb508de6f917f2ed47406a106947636b7598 | |
| parent | fix(routes): absolute domain for shortcuts (diff) | |
| download | due.moe-8d3eef544c4249ba2148224f661389546a27e75f.tar.xz due.moe-8d3eef544c4249ba2148224f661389546a27e75f.zip | |
fix(feeds): title fallback
| -rw-r--r-- | src/routes/feeds/activity-notifications/+server.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/feeds/activity-notifications/+server.ts b/src/routes/feeds/activity-notifications/+server.ts index f0482194..ca1464bd 100644 --- a/src/routes/feeds/activity-notifications/+server.ts +++ b/src/routes/feeds/activity-notifications/+server.ts @@ -13,7 +13,7 @@ const render = (posts: Notification[] = []) => `<?xml version="1.0" encoding="UT xmlns:media="http://search.yahoo.com/mrss/"> <channel> <atom:link href="https://due.moe/feeds/activity-notifications" rel="self" type="application/rss+xml" /> - <title>期限 | AniList Notifications</title> + <title>AniList Notifications • due.moe</title> <link>https://due.moe</link> <description>Instantly view your AniList notifications via RSS!</description> <pubDate>${new Date().toUTCString()}</pubDate> @@ -39,7 +39,7 @@ 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}`; + title += `${notification.thread.title || notification.thread.id}`; link = `https://anilist.co/forum/thread/${notification.thread.id}`; } |