data endpoint for entity 90008 (aka. a website)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: trim author size duh

+1 -1
+1 -1
src/routes/guestbook/+page.server.ts
··· 25 25 const postAction = (client: any, scopes: string[]) => { 26 26 return async ({ request, cookies }: { request: Request, cookies: Cookies }) => { 27 27 const form = await request.formData() 28 - const author = form.get("author")?.toString().replace(/([^_a-z0-9]+)/gi, '') 28 + const author = form.get("author")?.toString().substring(0, 32).replace(/([^_a-z0-9]+)/gi, '') 29 29 const content = form.get("content")?.toString().substring(0, 512) 30 30 const scopedCookies = scopeCookies(cookies) 31 31 if (author === undefined || content === undefined) {