Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Buttondown Newsletter Tags #1313

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading