From bdfdc0402ddb23e9af002580f368bc52e4268b3a Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 11 Jan 2023 23:22:51 +0100 Subject: [PATCH] update content should parse out links #3509 --- src/etapi/notes.js | 2 ++ test-etapi/put-note-content.http | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/etapi/notes.js b/src/etapi/notes.js index 065cefab5..24fe43078 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 66797c0dc..670195ac2 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); %} ###