Repository navigation
Richer Discord cards for share links - #1394
Conversation
File pages now describe the file the way the Slack unfurl does: the issue or PR title, then type, size and path, instead of a fixed sentence. The oEmbed response names what a link belongs to (the PR for a file, the live link or gallery for an item) as author_name/author_url, which Discord shows as a linked line above the title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KeLbkfdAHN8afAsFhmJWkd
|
|
No uploads on this PR yet This PR changes UI files (
Tips for agentsLabel each shot so reviewers know what they're seeing. Labels apply to every file in a call, so run one uploads put after.png --pr 1394 --meta path=/settings --state after --caption "Saved settings toast"
uploads put chat.png --pr 1394 --app ios --screen "Chat" --state afterNo CLI? With the Uploads MCP, call This comment updates with each upload, so you don't need to post the images yourself. A shot or two in the PR description is still welcome. Check what's attached with Workspace admins can turn this comment off in Settings → GitHub · docs |
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one): 2
🚫 Excluded labels (none allowed): 1
Please check the settings in the CodeRabbit UI or the
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KeLbkfdAHN8afAsFhmJWkd
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KeLbkfdAHN8afAsFhmJWkd
Requested by Zach · project thread
Discord has no unfurl API like Slack's
chat.unfurl; it builds embeds from Open Graph tags plus the page's oEmbed link. Share pages already emit Discord-safe OG/Twitter tags (large image, inlineog:video, PNG/JPEG card copies for AVIF/WebP, 2048-char URL cap, held/private files 404 so they fall back to the default card). What was missing compared with the Slack unfurl is the context line and facts, so this adds those without a bot:og:description(and the page's meta description) now lead with the file'scaptionmetadata, or the issue/PR title when there's no caption, thentype · size · path(e.g.Saved settings toast/PNG · 182 KB · /settings). Before, every file used the fixed sentence "Public file hosted by uploads.sh.", which is now only the fallback. Gallery items already used their caption.author_name/author_urlfor what the link belongs to. Discord renders this as a linked line above the title, matching the Slack subtitle:acme/app#42linking to GitHub/c/<id>/g/<id>Data still comes only from the public read endpoints, so nothing appears that the share page itself doesn't show.
Testing
vitestforoembed,public-file,unfurl, andembed-player(new cases cover author fields, caption precedence, and the description).pnpm --filter @uploads/web typecheckis clean./f/link in Discord. Discord caches embeds, so test with a link that hasn't been posted before.🤖 Generated with Claude Code
https://claude.ai/code/session_01KeLbkfdAHN8afAsFhmJWkd