From 715b2f07fbfd781df667866aff0b3ce7ae36fa1d Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 17 Sep 2023 23:41:11 -0700 Subject: feat(notifications): better image support --- src/routes/feeds/activity-notifications/+server.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/routes/feeds/activity-notifications/+server.ts b/src/routes/feeds/activity-notifications/+server.ts index db283613..e57e9d55 100644 --- a/src/routes/feeds/activity-notifications/+server.ts +++ b/src/routes/feeds/activity-notifications/+server.ts @@ -3,7 +3,12 @@ import { notifications, type Notification } from '$lib/AniList/notifications'; export const GET = async ({ url }) => { const data = await notifications(url.searchParams.get('token') || 'null'); const render = (posts: Notification[]) => ` - + 期限 | AniList Notifications @@ -12,11 +17,7 @@ export const GET = async ({ url }) => { ${new Date().toUTCString()} ${new Date().toUTCString()} en-US - - https://due.moe/favicon-192x192.png - https://due.moe - 期限 | AniList Notifications - + https://due.moe/favicon-192x192.png ${posts .map((notification: Notification) => { let title = `${notification.user.name} ${notification.context}`; @@ -44,7 +45,7 @@ export const GET = async ({ url }) => { ${title} ${link} ${notification.user.name} - + ${prettyType} ${new Date( notification.createdAt * 1000 + new Date().getTimezoneOffset() -- cgit v1.2.3