content.title=NSLocalizedString("Someone posted a note",comment:"Title label for push notification where someone posted a note")
content.body=event.content
break
case.dm:
content.title=NSLocalizedString("New message",comment:"Title label for push notifications where a direct message was sent to the user")
content.body=NSLocalizedString("(Contents are encrypted)",comment:"Label on push notification indicating that the contents of the message are encrypted")
content.title=NSLocalizedString("Someone reacted to your note",comment:"Generic title label for push notifications where someone reacted to the user's post")
break
}
content.title=NSLocalizedString("New note reaction",comment:"Title label for push notifications where someone reacted to the user's post with a specific emoji")
content.body=String(format:NSLocalizedString("Someone reacted to your note with %@",comment:"Body label for push notifications where someone reacted to the user's post with a specific emoji"),reactionEmoji)
break
case.zap:
content.title=NSLocalizedString("Someone zapped you ⚡️",comment:"Title label for a push notification where someone zapped the user")
title=String(format:NSLocalizedString("Mentioned by %@",comment:"Mentioned by heading in local notification"),displayName)
identifier="myMentionNotification"
case.repost:
title=String(format:NSLocalizedString("Reposted by %@",comment:"Reposted by heading in local notification"),displayName)
identifier="myBoostNotification"
case.like:
title=String(format:NSLocalizedString("%@ reacted with %@",comment:"Reacted by heading in local notification"),displayName,to_reaction_emoji(ev:notify.event)??"")