From 3daac37e0854f787cadc8859ffd42bde73636fb3 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 19 Jun 2024 13:35:43 -0500 Subject: [PATCH] Render custom emoji reaction in notifications --- src/views/mastodon/notifications.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/mastodon/notifications.ts b/src/views/mastodon/notifications.ts index 8f2a8a62..5fc20a2f 100644 --- a/src/views/mastodon/notifications.ts +++ b/src/views/mastodon/notifications.ts @@ -87,6 +87,7 @@ async function renderReaction(event: DittoEvent, opts: RenderNotificationOpts) { id: notificationId(event), type: 'pleroma:emoji_reaction', emoji: event.content, + emoji_url: event.tags.find(([name, value]) => name === 'emoji' && `:${value}:` === event.content)?.[2], created_at: nostrDate(event.created_at).toISOString(), account, status,