Show just song title in share preview

This commit is contained in:
b1rdmania
2025-12-29 13:26:03 +00:00
parent 1041be46f3
commit 3af9eec13f
+2 -2
View File
@@ -220,8 +220,8 @@ app.get('/s/:code', async (req, res) => {
const imageUrl = origin ? `${origin}/wario-sprite.png` : '/wario-sprite.png'; const imageUrl = origin ? `${origin}/wario-sprite.png` : '/wario-sprite.png';
const sharedTitle = (payload.title || '').trim(); const sharedTitle = (payload.title || '').trim();
const ogTitle = sharedTitle ? `${sharedTitle} - WARIO SYNTH` : 'WARIO SYNTH'; const ogTitle = sharedTitle || 'WARIO SYNTH';
const ogDescription = sharedTitle ? 'I made this in WARIO SYNTH' : 'Tap to play this Gameboy tune'; const ogDescription = 'I made this in WARIO SYNTH';
const html = `<!doctype html> const html = `<!doctype html>
<html lang="en"> <html lang="en">