From f7ce9327effbe0b9ae071050acc3fc92efc70bc1 Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Thu, 28 May 2026 17:32:31 -0400 Subject: [PATCH] fix email template post links --- emails/post.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/emails/post.tsx b/emails/post.tsx index c7af696f..b6954b9f 100644 --- a/emails/post.tsx +++ b/emails/post.tsx @@ -483,6 +483,7 @@ export const PostEmail = (props: Partial = {}) => { assetsBaseUrl={p.assetsBaseUrl} theme={theme} colors={c} + postUrl={p.postUrl} /> ))} @@ -687,6 +688,7 @@ const BlockRenderer = ({ assetsBaseUrl, theme, colors, + postUrl, }: { block: PubLeafletPagesLinearDocument.Block["block"]; alignment?: string; @@ -694,6 +696,7 @@ const BlockRenderer = ({ assetsBaseUrl: string; theme: EmailTheme; colors: ResolvedColors; + postUrl: string; }) => { if (PubLeafletBlocksText.isMain(block)) { return ( @@ -862,7 +865,9 @@ const BlockRenderer = ({ /> ); } - return ; + return ( + + ); }; // Helpers used by the confirm-email templates inside their @@ -1276,9 +1281,11 @@ export const CodeBlock = ({ export const BlockNotSupported = ({ theme = defaultEmailTheme, colors, + postUrl, }: { theme?: EmailTheme; colors?: ResolvedColors; + postUrl?: string; } = {}) => { const c = colors ?? resolveColors(theme); return ( @@ -1312,6 +1319,7 @@ export const BlockNotSupported = ({ }} >