Tighten share copy

- Title: "WARIO SYNTH" or "Song Name - WARIO SYNTH"
- Description: "Tap to play this Gameboy tune"
- Switch to summary card (smaller image)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
b1rdmania
2025-12-29 13:22:19 +00:00
parent 7a8f6d6517
commit 853e274a9d
2 changed files with 10 additions and 12 deletions
+3 -5
View File
@@ -220,10 +220,8 @@ app.get('/s/:code', async (req, res) => {
const imageUrl = origin ? `${origin}/wario-sprite.png` : '/wario-sprite.png';
const sharedTitle = (payload.title || '').trim();
const ogTitle = sharedTitle ? `WARIO SYNTH: ${sharedTitle}` : 'WARIO SYNTH';
const ogDescription = sharedTitle
? `Someone shared "${sharedTitle}" with you. Tap to play it through the Wario Synthesis Engine — then generate your own.`
: 'Someone shared a song with you. Tap to play it through the Wario Synthesis Engine — then generate your own.';
const ogTitle = sharedTitle ? `${sharedTitle} - WARIO SYNTH` : 'WARIO SYNTH';
const ogDescription = 'Tap to play this Gameboy tune';
const html = `<!doctype html>
<html lang="en">
@@ -241,7 +239,7 @@ app.get('/s/:code', async (req, res) => {
<meta property="og:type" content="website" />
<meta property="og:url" content="${escapeHtml(shortUrl)}" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="${escapeHtml(ogTitle)}" />
<meta name="twitter:description" content="${escapeHtml(ogDescription)}" />
<meta name="twitter:image" content="${escapeHtml(imageUrl)}" />