From 2a682bddd6f7e0403f283b1dd13534b4ca22a38a Mon Sep 17 00:00:00 2001 From: Ben Derham <1805685+benderham@users.noreply.github.com> Date: Wed, 18 Sep 2024 09:08:56 +0800 Subject: [PATCH] trim source tag to 80 characters --- docs/src/app/mailing-list/route.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/src/app/mailing-list/route.ts b/docs/src/app/mailing-list/route.ts index aed4d28dc..669a0dec5 100644 --- a/docs/src/app/mailing-list/route.ts +++ b/docs/src/app/mailing-list/route.ts @@ -23,7 +23,10 @@ export async function POST(req: Request): Promise { console.log(formData.getAll('tags')); const data = { email: formData.get('email'), - tags: [...formData.getAll('tags'), `source:keystatic.com${pathname}`], + tags: [ + ...formData.getAll('tags'), + `source:keystatic.com${pathname}`.substring(0, 80), + ], }; const buttondownResponse = await fetch(