Skip to content

fix: oEmbed endpoint not working for external consumers (#473)#1599

Open
tarai-dl wants to merge 1 commit intotapexyz:mainfrom
tarai-dl:rn/fix-oembed-473
Open

fix: oEmbed endpoint not working for external consumers (#473)#1599
tarai-dl wants to merge 1 commit intotapexyz:mainfrom
tarai-dl:rn/fix-oembed-473

Conversation

@tarai-dl
Copy link
Copy Markdown

Fixes #473 - OEmbed not working when pasting tape.xyz links on platforms that support oEmbed.

Bug Fixes:

  1. Fixed author_url extraction - was reading from imageTag instead of urlTag
  2. Added XML entity escaping for oEmbed XML format response
  3. Added validation for missing url parameter and HTTP error handling
  4. Added permissive CORS for oEmbed endpoint for external consumers (iframely, Discord, etc.)
  5. Changed oEmbed type to 'link' when no embed iframe can be constructed (oEmbed spec compliance)

- Fix author_url extraction: was reading from imageTag instead of urlTag
- Add XML entity escaping for oEmbed XML format response
- Add validation for missing url parameter and HTTP error handling
- Add permissive CORS for oEmbed endpoint for external consumers
- Change oEmbed type to 'link' when no embed iframe can be constructed
@tarai-dl tarai-dl requested a review from sasicodes as a code owner April 17, 2026 17:39
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.

OEmbed not working

1 participant