Skip to content

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

bug fixed

daniel31x1362c7bbbb7483
diff --git a/lib/api/autoTagLink.ts b/lib/api/autoTagLink.ts
index e0e3e3af..08102c6a 100644
--- a/lib/api/autoTagLink.ts
+++ b/lib/api/autoTagLink.ts
@@ -25,6 +25,13 @@ export default async function autoTagLink(user: User, linkId: number) {
prompt = predefinedTagsPrompt(textContent, user.aiPredefinedTags);
}
+ if (
+ user.aiTaggingMethod === AiTaggingMethod.PREDEFINED &&
+ user.aiPredefinedTags.length === 0
+ ) {
+ return console.log("No predefined tags to auto tag for link: ", link.url);
+ }
+
const response = await axios.post(
process.env.NEXT_PUBLIC_OLLAMA_ENDPOINT_URL + "/api/generate",
{