Skip to content

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

Max tag name length

Isaacf61ce5563da8
diff --git a/lib/api/autoTagLink.ts b/lib/api/autoTagLink.ts
index 01352d9d..19917ca6 100644
--- a/lib/api/autoTagLink.ts
+++ b/lib/api/autoTagLink.ts
@@ -81,7 +81,7 @@ export default async function autoTagLink(
take: 50,
});
- existingTagsNames = existingTags.map((tag) => tag.name);
+ existingTagsNames = existingTags.map((tag) => tag.name.length > 50 ? tag.name.slice(0, 47) + '...' : tag.name);
}
const promptText = metaDescription || link.textContent?.slice(0, 500) + "...";