Attic is a cozy space with lofty ambitions. attic.social
11
fork

Configure Feed

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

normalize url

+2 -1
+2 -1
src/routes/bookmarks/[did=did]/+page.server.ts
··· 16 16 const formData = await event.request.formData(); 17 17 formData.set("createdAt", new Date().toISOString()); 18 18 const data = Object.fromEntries(formData); 19 + // @ts-ignore normalize url 20 + data.url = URL.parse(formData.get("url"))?.href; 19 21 try { 20 22 const record = parseBookmark(data); 21 23 const rpc = new Client({ handler: user.session }); ··· 27 29 record, 28 30 }, 29 31 }); 30 - console.log(result); 31 32 if (result.ok === false) { 32 33 throw new Error(); 33 34 }