Skip to content

Remove njump Nostr embeds#2971

Open
nexicturbo wants to merge 1 commit into
stackernews:masterfrom
nexicturbo:codex/remove-njump-nostr-embeds
Open

Remove njump Nostr embeds#2971
nexicturbo wants to merge 1 commit into
stackernews:masterfrom
nexicturbo:codex/remove-njump-nostr-embeds

Conversation

@nexicturbo
Copy link
Copy Markdown

Description

Closes #2813.

This removes the njump-backed Nostr embed path and switches outbound Nostr viewer links to damus.io. Specifically:

  • stops treating Nostr IDs/links as embeddable content
  • removes the njump iframe embed component and CSP frame allowlist entry
  • switches profile, footer, item, and notification Nostr links from njump.me to damus.io
  • updates rich-text Nostr ID links to use damus.io
  • removes Nostr from the user-facing third-party embed provider list

QA

  • npm test -- lib/url.spec.js --runInBand
  • npm run lint -- components/embed.js components/footer.js components/item-info.js components/notifications.js components/user-header.js lib/lexical/mdast/visitors/nostr.js lib/url.js lib/url.spec.js pages/settings/index.js proxy.js
  • git diff --check

Checklist

Are your changes backward compatible? Please answer below:

Mostly yes. Existing Nostr IDs still become outbound links, but njump embeds intentionally stop rendering per the issue.

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:

  1. Added URL coverage to ensure Nostr links do not embed, ran the focused Jest test, linted every touched file, and checked for remaining njump production references.

For frontend changes: Tested on mobile, light and dark mode? Please answer below:

No visual runtime QA; this removes a broken iframe embed path and changes outbound link targets.

Did you introduce any new environment variables? If so, call them out explicitly here:

No.

Did you use AI for this? If so, how much did it assist you?

Yes. AI assisted with locating the njump touchpoints, making the focused patch, and running verification. I reviewed the resulting diff before submission.

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.

Remove njump.me embed, for links switch to damus.io

1 participant