A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
fix: Trim whitespaces from submitted URLs
MohamedBassem8ab868d3f94c
diff --git a/packages/trpc/routers/bookmarks.ts b/packages/trpc/routers/bookmarks.tsindex ea7ffef8..1c6208a9 100644--- a/packages/trpc/routers/bookmarks.ts+++ b/packages/trpc/routers/bookmarks.ts@@ -128,7 +128,7 @@ export const bookmarksAppRouter = router({.insert(bookmarkLinks).values({id: bookmark.id,- url: input.url,+ url: input.url.trim(),}).returning())[0];