Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

bug fix

Daniel0dfd2664874d
diff --git a/lib/api/controllers/collections/postCollection.ts b/lib/api/controllers/collections/postCollection.ts
index 8e4cc991..917f02f3 100644
--- a/lib/api/controllers/collections/postCollection.ts
+++ b/lib/api/controllers/collections/postCollection.ts
@@ -37,7 +37,7 @@ export default async function postCollection(
id: userId,
},
},
- name: collection.name,
+ name: collection.name.trim(),
description: collection.description,
color: collection.color,
members: {
diff --git a/lib/api/controllers/links/postLink.ts b/lib/api/controllers/links/postLink.ts
index 2991235b..7a1bf56b 100644
--- a/lib/api/controllers/links/postLink.ts
+++ b/lib/api/controllers/links/postLink.ts
@@ -57,7 +57,7 @@ export default async function postLink(
},
},
create: {
- name: link.collection.name,
+ name: link.collection.name.trim(),
ownerId: userId,
},
},