Skip to content

fix(web): social preview cards (og:image was 404) - #136

Merged
ralyodio merged 2 commits into
masterfrom
feat/og-cards
Nov 8, 2026
Merged

ralyodio merged 2 commits into
masterfrom
feat/og-cards

Conversation

@ralyodio

@ralyodio ralyodio commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

/og-image.png returned 404, so shared c0mpute.com links (for example a Reddit post of /r/profullstack) previewed without an image, and every page used the homepage og:title.

  • next/og cards: a site-wide card, /r/<handle> (" invited you, Run a c0mpute node"), and /nodes (live count, neutral title if the aggregator is down)
  • og:title and og:url per page for /r and /nodes; metadataBase set

Checked locally: all three images return 200 image/png at 1200x630, and the meta tags are correct. tsc is clean.

🤖 Generated with Claude Code

… /r and /nodes

/og-image.png never existed, so every link shared to Reddit/X/Slack showed no
image, and every page carried the homepage's og:title/url. Cards are now
generated by next/og (opengraph-image + twitter-image): a site-wide card, an
invite card for /r/<handle> ("<handle> invited you"), and a live count for
/nodes. metadataBase set; pageOg() keeps type/site name when a page overrides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

ThreatCrush Security Scan

12 finding(s)

HIGH/CRITICAL: 1 | MEDIUM: 8 | LOW: 3

Severity Rule Location
HIGH js-ssrf-outbound-request apps/web/public/sw.js:24
MEDIUM js-unescaped-html-sink apps/web/src/app/blog/[slug]/page.tsx:53
MEDIUM js-unescaped-html-sink apps/web/src/app/layout.tsx:80
MEDIUM sh-remote-script-execution scripts/dev-setup.sh:25
MEDIUM sh-eval-expansion scripts/dev-setup.sh:35
MEDIUM sh-remote-script-execution scripts/install.sh:173
MEDIUM sh-remote-script-execution scripts/install.sh:198
MEDIUM sh-remote-script-execution scripts/install.sh:316
MEDIUM sh-remote-script-execution scripts/install.sh:354
LOW py-ssrf-outbound-request examples/business-strategist-agent/chat.py:37
LOW py-ssrf-outbound-request examples/business-strategist-agent/train.py:54
LOW secret-generic-credential node/crates/c0mpute-core/src/webhook.rs:1165

Snippets are redacted; ThreatCrush never prints matched credential material.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit a129651 into master Nov 8, 2026
11 checks passed
@ralyodio
ralyodio deleted the feat/og-cards branch November 8, 2026 16:26
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.

1 participant