From c257bc07a82fd92e8d4c6997558366f726c06bc2 Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 9 Aug 2023 00:01:31 +0200 Subject: [PATCH] clipper now creates notes with image attachments instead of image notes --- src/routes/api/clipper.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/routes/api/clipper.js b/src/routes/api/clipper.js index c987bd8e7..e0fa9eb2f 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() ? "
" : ""}${rewrittenContent}`; note.setContent(newContent); - const noteService = require("../../services/notes"); noteService.asyncPostProcessContent(note, newContent); // to mark attachments as used return {