Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not replace URLs containing npub1 or naddr1 with nostr URLs. #175

Open
Lokuyow opened this issue Oct 16, 2024 · 0 comments
Open

Do not replace URLs containing npub1 or naddr1 with nostr URLs. #175

Lokuyow opened this issue Oct 16, 2024 · 0 comments

Comments

@Lokuyow
Copy link

Lokuyow commented Oct 16, 2024

Describe the bug
When you paste a URL like the following into an article:
https://nostviewstr.vercel.app/npub17hczqvxtfv3w69wr6lxrttnpdekwdwel55mld60fr24zwjuu6utqtj8mjx/10030
https://emojito.meme/a/naddr1qqykwetwv4exzmz22qqs6amnwvaz7tmwdaejumr0dspzpmzzcaj5rzeah8y940ln4z855wa72af4a6aac4zjypql55egcpsqqvzqqqr4fcp4fwv8
It gets replaced with a nostr URL like this:
nostr:npub17hczqvxtfv3w69wr6lxrttnpdekwdwel55mld60fr24zwjuu6utqtj8mjx
nostr:naddr1qqykwetwv4exzmz22qqs6amnwvaz7tmwdaejumr0dspzpmzzcaj5rzeah8y940ln4z855wa72af4a6aac4zjypql55egcpsqqvzqqqr4fcp4fwv8

To Reproduce
Steps to reproduce the behavior:

  1. Go to the article editor.
  2. Paste a URL containing naddr1, npub1, note1, nprofile1, or nevent1 in the article.
  3. The URL is replaced with nostr:~.

Expected behavior
The link should function as https://~ instead of being replaced.

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

No branches or pull requests

1 participant