Skip to content

Build your personal knowledge base with Trilium Notes

update content should parse out links #3509

zadambdfdc0402ddb
diff --git a/src/etapi/notes.js b/src/etapi/notes.js
index 065cefab5f..24fe43078b 100644
--- a/src/etapi/notes.js
+++ b/src/etapi/notes.js
@@ -123,6 +123,8 @@ function register(router) {
note.setContent(req.body);
+ noteService.scanForLinks(note);
+
return res.sendStatus(204);
});
diff --git a/test-etapi/put-note-content.http b/test-etapi/put-note-content.http
index 66797c0dc9..670195ac2a 100644
--- a/test-etapi/put-note-content.http
+++ b/test-etapi/put-note-content.http
@@ -20,7 +20,7 @@ Content-Type: text/plain
Changed content
-> {% client.assert(response.status === 200); %}
+> {% client.assert(response.status === 204); %}
###