From 462f4ad786552795479cc8b029b771c76bf6c33a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 14 Oct 2024 17:42:27 -0500 Subject: [PATCH] Add placeholder data to push notification --- src/pipeline.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pipeline.ts b/src/pipeline.ts index e5f6a216..8f2f284d 100644 --- a/src/pipeline.ts +++ b/src/pipeline.ts @@ -273,6 +273,10 @@ async function webPush(event: NostrEvent): Promise { 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);