Skip to content

Conversation

@freepilot-bot
Copy link

Fixes #3177

commit 4756a85
Author: freepilot-bot [email protected]
Date: Mon Jun 16 10:11:19 2025 +0000

feat: warn when signing kind 3 events with <2 p-tags

- Add warning logic to signEventOrPrompt for kind 3 events with insufficient p-tags
- Display prominent warning banner in confirmation UI for these events
- Always show confirmation prompt even when permissions are granted
- Add translation strings for the warning message
- Include comprehensive tests for the new functionality

This helps prevent users from accidentally overwriting their entire follow lists
when signing into new Nostr clients, which is a pervasive issue in the ecosystem.

View job on Freepilot: https://freepilot.albylabs.com/jobs/10

- Add warning logic to signEventOrPrompt for kind 3 events with insufficient p-tags
- Display prominent warning banner in confirmation UI for these events
- Always show confirmation prompt even when permissions are granted
- Add translation strings for the warning message
- Include comprehensive tests for the new functionality

This helps prevent users from accidentally overwriting their entire follow lists
when signing into new Nostr clients, which is a pervasive issue in the ecosystem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Warn when I'm about to sign a kind 3 event containing less than 2 p-tags

1 participant