mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fallback for missing parsed title, closes trilium-web-clipper/issues/16
This commit is contained in:
		| @@ -65,7 +65,11 @@ async function addClipping(req) { | ||||
| } | ||||
|  | ||||
| async function createNote(req) { | ||||
|     const {title, content, pageUrl, images, clipType} = req.body; | ||||
|     let {title, content, pageUrl, images, clipType} = req.body; | ||||
|  | ||||
|     if (!title || !title.trim()) { | ||||
|         title = "Clipped note from " + pageUrl; | ||||
|     } | ||||
|  | ||||
|     log.info(`Creating clipped note from ${pageUrl}`); | ||||
|  | ||||
| @@ -155,4 +159,4 @@ module.exports = { | ||||
|     addClipping, | ||||
|     openNote, | ||||
|     handshake | ||||
| }; | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user