Skip to content

fix(web,mobile): quote embed iframe src and remove unused TweetEmbed - #14766

Open
noisyloop wants to merge 1 commit into
AudiusProject:mainfrom
noisyloop:fix/embed-iframe-quote-and-remove-tweet-embed
Open

noisyloop wants to merge 1 commit into
AudiusProject:mainfrom
noisyloop:fix/embed-iframe-quote-and-remove-tweet-embed

Conversation

@noisyloop

Copy link
Copy Markdown
  • The embed modal built <iframe src=${url} ...> with an unquoted attribute from the API-provided permalink and rendered it with dangerouslySetInnerHTML. Quote and escape the url so a permalink containing a space or > can't add attributes or markup.
  • Remove the unused mobile TweetEmbed, which interpolated tweetId into inline JavaScript in a WebView page.

- The embed modal built `<iframe src=${url} ...>` with an unquoted attribute
  from the API-provided permalink and rendered it with
  dangerouslySetInnerHTML. Quote and escape the url so a permalink containing
  a space or `>` can't add attributes or markup.
- Remove the unused mobile TweetEmbed, which interpolated tweetId into inline
  JavaScript in a WebView page.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MCeedExnNyKNJiHo1n7EMZ
@changeset-bot

changeset-bot Bot commented Nov 11, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a70a254

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants