From 42930927563da6bead4b8a6c720973e5f76ddd94 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 17 Oct 2024 15:16:14 -0500 Subject: [PATCH] Fix zap amount in web push notification Ref: https://gleasonator.dev/@idsera@ditto.pub/posts/eeddba51bb15e06654afd1952e62bd91d2248d9517ba499024b09887081dd919 --- src/views/mastodon/push.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/mastodon/push.ts b/src/views/mastodon/push.ts index 2541657e..0a13179b 100644 --- a/src/views/mastodon/push.ts +++ b/src/views/mastodon/push.ts @@ -39,7 +39,7 @@ function renderTitle(notification: MastodonNotification): string { case 'ditto:name_grant': return `You were granted the name ${notification.name}`; case 'ditto:zap': - return `${name} zapped you ${notification.amount} sats`; + return `${name} zapped you ${Math.floor(notification.amount / 1000)} sats`; case 'pleroma:emoji_reaction': return `${name} reacted to your post`; case 'favourite':