Merge branch 'push-zap-amount' into 'main'

Fix zap amount in web push notification

See merge request soapbox-pub/ditto!553
This commit is contained in:
Alex Gleason 2024-10-17 20:21:21 +00:00
commit 28e8dfb4ac

View file

@ -39,7 +39,7 @@ function renderTitle(notification: MastodonNotification): string {
case 'ditto:name_grant': case 'ditto:name_grant':
return `You were granted the name ${notification.name}`; return `You were granted the name ${notification.name}`;
case 'ditto:zap': case 'ditto:zap':
return `${name} zapped you ${notification.amount} sats`; return `${name} zapped you ${Math.floor(notification.amount / 1000)} sats`;
case 'pleroma:emoji_reaction': case 'pleroma:emoji_reaction':
return `${name} reacted to your post`; return `${name} reacted to your post`;
case 'favourite': case 'favourite':