mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
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:
commit
8bd67720d6
1 changed files with 1 additions and 0 deletions
|
|
@ -87,6 +87,7 @@ async function renderReaction(event: DittoEvent, opts: RenderNotificationOpts) {
|
||||||
id: notificationId(event),
|
id: notificationId(event),
|
||||||
type: 'pleroma:emoji_reaction',
|
type: 'pleroma:emoji_reaction',
|
||||||
emoji: event.content,
|
emoji: event.content,
|
||||||
|
emoji_url: event.tags.find(([name, value]) => name === 'emoji' && `:${value}:` === event.content)?.[2],
|
||||||
created_at: nostrDate(event.created_at).toISOString(),
|
created_at: nostrDate(event.created_at).toISOString(),
|
||||||
account,
|
account,
|
||||||
status,
|
status,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue