Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
clipper now creates notes with image attachments instead of image notes
zadamc257bc07a82f
diff --git a/src/routes/api/clipper.js b/src/routes/api/clipper.jsindex c987bd8e7d..e0fa9eb2fc 100644--- a/src/routes/api/clipper.js+++ b/src/routes/api/clipper.js@@ -11,7 +11,6 @@ const ws = require('../../services/ws');const log = require('../../services/log');const utils = require('../../services/utils');const path = require('path');-const BAttribute = require('../../becca/entities/battribute');const htmlSanitizer = require('../../services/html_sanitizer');const {formatAttrForSearch} = require("../../services/attribute_formatter");const jsdom = require("jsdom");@@ -130,7 +129,6 @@ function createNote(req) {const newContent = `${existingContent}${existingContent.trim() ? "<br/>" : ""}${rewrittenContent}`;note.setContent(newContent);- const noteService = require("../../services/notes");noteService.asyncPostProcessContent(note, newContent); // to mark attachments as usedreturn {