Skip to content

Conversation

@backspace
Copy link
Contributor

@backspace backspace commented Jan 31, 2026

This should make embeds work on more platforms, which don’t specify the Accept: text/html header we were expecting to serve host mode responses.

(#3947 has server.ts extractions related to this work.)

When I deployed this to production, Whatsapp:

IMG_3493

OpenGraph:

image

OrcaScan validator warns of missing tags, which has its own issue (10140) but mostly works:

Open Graph Validator 2026-01-30 22-32-52

@backspace backspace self-assigned this Jan 31, 2026
@backspace backspace added the bug Something isn't working label Jan 31, 2026
@github-actions
Copy link

github-actions bot commented Jan 31, 2026

Host Test Results

    1 files  ±0      1 suites  ±0   1h 43m 4s ⏱️ - 1m 36s
1 944 tests ±0  1 927 ✅ ±0  17 💤 ±0  0 ❌ ±0 
1 959 runs  ±0  1 942 ✅ ±0  17 💤 ±0  0 ❌ ±0 

Results for commit 20d9b10. ± Comparison against base commit 95bad6d.

♻️ This comment has been updated with latest results.

backspace and others added 7 commits February 2, 2026 15:34
…stances

For published realms with generic Accept headers (like */*), distinguish
card URLs from module URLs. Module imports (e.g., "./person") resolve to
URLs without extensions and would incorrectly get HTML served instead of
module content, causing FilterRefersToNonexistentTypeError.

Now only serve HTML if:
1. This is a directory index request (path ends with /), OR
2. The URL corresponds to an indexed card instance

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@backspace backspace requested a review from a team February 4, 2026 04:22
@backspace backspace added enhancement New feature or request and removed bug Something isn't working labels Feb 4, 2026
@backspace backspace removed the request for review from a team February 4, 2026 04:22
@backspace backspace added bug Something isn't working and removed enhancement New feature or request labels Feb 4, 2026
@backspace
Copy link
Contributor Author

I didn’t mean to request review on this yet!

@backspace backspace marked this pull request as ready for review February 4, 2026 19:54
@backspace backspace requested a review from a team February 4, 2026 19:54
Copy link
Contributor

@lukemelia lukemelia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will likely get more complicated when we build routing, but this seems good for now.

@backspace backspace merged commit a234a20 into main Feb 4, 2026
94 of 95 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants