Skip to content

Commit

Permalink
Update Buttondown Newsletter Tags (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
benderham authored Sep 18, 2024
1 parent 28fb7ab commit 37e1340
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
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
4 changes: 2 additions & 2 deletions docs/src/components/forms/mailing-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function MailingListForm() {
name="tags"
id="mailing-list-keystatic"
className="form-checkbox size-4 rounded text-black"
value="keystatic_list"
value="list:keystatic"
defaultChecked
/>
<label
Expand All @@ -53,7 +53,7 @@ export default function MailingListForm() {
name="tags"
id="mailing-list-thinkmill"
className="form-checkbox size-4 rounded text-black"
value="thinkmill_list"
value="list:thinkmill"
/>
<label
className="text-sm text-sand-11"
Expand Down

0 comments on commit 37e1340

Please sign in to comment.