From 0d6bc366e6180025cc13954949455d1bcffd1315 Mon Sep 17 00:00:00 2001 From: Shane Loeffler Date: Wed, 15 Jan 2025 16:23:57 -0600 Subject: [PATCH] pass through color for commentary card --- pages/api/og/commentary.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/api/og/commentary.js b/pages/api/og/commentary.js index 228803fd..1b0f93c6 100644 --- a/pages/api/og/commentary.js +++ b/pages/api/og/commentary.js @@ -21,7 +21,8 @@ export default async function handler(req) { throw new Error(`Commentary not found for id: ${id}`) } - const { title, date, collapseCardAuthors, titleWidthOverride } = commentary + const { title, date, collapseCardAuthors, titleWidthOverride, color } = + commentary const authors = commentary.authors.map((author) => typeof author === 'string' ? author : author?.name || '' ) @@ -32,6 +33,7 @@ export default async function handler(req) { authors, collapseCardAuthors: collapseCardAuthorsParam || collapseCardAuthors, titleWidthOverride: titleWidthOverrideParam || titleWidthOverride, + color, }) return new ImageResponse(component, {