Skip to content

Commit

Permalink
trim source tag to 80 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
benderham committed Sep 18, 2024
1 parent 1390b82 commit 2a682bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/src/app/mailing-list/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ export async function POST(req: Request): Promise<Response> {
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(
Expand Down

0 comments on commit 2a682bd

Please sign in to comment.