Render custom emoji reaction in notifications

This commit is contained in:
Alex Gleason 2024-06-19 13:35:43 -05:00
parent 875eee7a77
commit 3daac37e08
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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,