mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-01 03:24:19 +01:00
Fix zap amount in web push notification
Ref: https://gleasonator.dev/@idsera@ditto.pub/posts/eeddba51bb15e06654afd1952e62bd91d2248d9517ba499024b09887081dd919
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user