mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
Merge remote-tracking branch 'origin/stable'
# Conflicts: # package.json # src/routes/api/clipper.js
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user