Add placeholder data to push notification

This commit is contained in:
Alex Gleason 2024-10-14 17:42:27 -05:00
parent 4c5d98f402
commit 462f4ad786
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -273,6 +273,10 @@ async function webPush(event: NostrEvent): Promise<void> {
notification_id: notification.id,
notification_type: notification.type,
access_token: nip19.npubEncode(row.pubkey),
preferred_locale: 'en',
title: notification.account.display_name || notification.account.username,
icon: notification.account.avatar_static,
body: event.content,
};
await DittoPush.push(subscription, message);