mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Add placeholder data to push notification
This commit is contained in:
parent
4c5d98f402
commit
462f4ad786
1 changed files with 4 additions and 0 deletions
|
|
@ -273,6 +273,10 @@ async function webPush(event: NostrEvent): Promise<void> {
|
||||||
notification_id: notification.id,
|
notification_id: notification.id,
|
||||||
notification_type: notification.type,
|
notification_type: notification.type,
|
||||||
access_token: nip19.npubEncode(row.pubkey),
|
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);
|
await DittoPush.push(subscription, message);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue