From fe94d78d812c70545e45828e38f6a49282e61ba0 Mon Sep 17 00:00:00 2001 From: clover caruso Date: Mon, 12 Oct 2026 15:01:27 -0700 Subject: [PATCH] feat(lib/meta): add `twitter:url` when using auto-embed --- lib/meta.ts | 1 + lib/readme.changes.md | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/meta.ts b/lib/meta.ts index b3eafe92e48cc28768c8388c6ed8450c3f6c90e1..a1c94df18d1edade520f2f64ab8b5f483c6c1aab 100644 --- a/lib/meta.ts +++ b/lib/meta.ts @@ -197,6 +197,7 @@ export function toTags(template: Template, meta: Meta): Tags { card: (thumbnailSize ?? (thumbnail ? "banner" : "icon")) === "banner" ? "summary_large_image" : "summary", + url: canonical ?? undefined, ...twitter, }; if (thumbnail) { diff --git a/lib/readme.changes.md b/lib/readme.changes.md index 38752a0ef130eb0f3d1153c5ed94c38d8c82a753..55e20bf0d115f7394fe11cd2e55bf2e8e969e6f7 100644 --- a/lib/readme.changes.md +++ b/lib/readme.changes.md @@ -9,6 +9,7 @@ - widgets can now read keyboard input. - finally fixes resize corruptions for long running widgets - `string/ansi`: add `inverse`, `resetInverse`, and `cursorHome`. +- `meta` auto-embed will now set `twitter:url`. ### fixes -- 2.54.0