From d501f3565d82f59c3841985dedd7f6902741242e Mon Sep 17 00:00:00 2001 From: b1rdmania <102524336+b1rdmania@users.noreply.github.com> Date: Fri, 26 Dec 2025 18:47:00 +0000 Subject: [PATCH] Customize social previews for short share links. Serve OG/Twitter meta tags from /s/:code and update /play meta copy so Telegram/X previews show a Gameboy-tune message and image. --- play.html | 16 +++++------ server/src/server.ts | 67 +++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 74 insertions(+), 9 deletions(-) diff --git a/play.html b/play.html index ccdfc51..4e8f845 100644 --- a/play.html +++ b/play.html @@ -3,13 +3,13 @@ - MOTIF - Play - + Check out this Gameboy tune — MOTIF + - - - + + + @@ -17,9 +17,9 @@ - - - + + + + + + Redirecting to the player… Tap here + + +`; + + res.setHeader('Content-Type', 'text/html; charset=utf-8'); + res.status(200).send(html); } catch (error) { console.error('Share resolve error:', error); const msg = error instanceof Error ? error.message : 'Resolve failed';