Merge branch 'custom-emoji-react' into 'main'

Render custom emoji reaction in notifications

See merge request soapbox-pub/ditto!392
This commit is contained in:
Alex Gleason 2024-06-19 18:38:04 +00:00
commit 8bd67720d6

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,