Merge remote-tracking branch 'origin/stable'

# Conflicts:
#	package.json
#	src/routes/api/clipper.js
This commit is contained in:
zadam
2020-07-15 00:11:26 +02:00
4 changed files with 10 additions and 7 deletions

View File

@@ -65,10 +65,11 @@ function addClipping(req) {
}
function createNote(req) {
const {title, content, pageUrl, images, clipType} = req.body;
log.info(`Creating clipped note from ${pageUrl}`);
let {title, content, pageUrl, images, clipType} = req.body;
if (!title || !title.trim()) {
title = "Clipped note from " + pageUrl;
}
const clipperInbox = getClipperInboxNote();
const {note} = noteService.createNewNote({