From ca815e72fe5df141b6b55a7d2dd9060a865aabdf Mon Sep 17 00:00:00 2001 From: Cho Young-Hwi Date: Wed, 25 Mar 2026 10:12:40 +0000 Subject: [PATCH] =?UTF-8?q?[#531]=20Fix=20X/Twitter=20share=20preview=20?= =?UTF-8?q?=E2=80=94=20add=20twitter=20metadata?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add twitter metadata to story page generateMetadata(): - twitter.card = summary_large_image - twitter.title, twitter.description, twitter.images - Points to dynamic OG route for per-story moleskine thumbnail - Bump version to 0.1.9 Fixes #531 Co-Authored-By: Claude Opus 4.6 (1M context) --- package.json | 2 +- src/app/story/[storylineId]/page.tsx | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 08b5fa60..02b47bf5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plotlink", - "version": "0.1.8", + "version": "0.1.9", "private": true, "workspaces": [ "packages/*" diff --git a/src/app/story/[storylineId]/page.tsx b/src/app/story/[storylineId]/page.tsx index f6b6244a..dcbe3128 100644 --- a/src/app/story/[storylineId]/page.tsx +++ b/src/app/story/[storylineId]/page.tsx @@ -84,6 +84,12 @@ export async function generateMetadata({ description, images: [{ url: ogImageUrl, width: 1200, height: 630 }], }, + twitter: { + card: "summary_large_image", + title: sl.title, + description, + images: [ogImageUrl], + }, other: { "fc:miniapp": fcEmbed, },