mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	allow sender to save labels
This commit is contained in:
		| @@ -35,6 +35,12 @@ function saveNote(req) { | ||||
|         mime: 'text/html' | ||||
|     }); | ||||
|  | ||||
|     if (req.body.labels) { | ||||
|         for (const {name, value} of req.body.labels) { | ||||
|             note.setLabel(name, value); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     return { | ||||
|         noteId: note.noteId, | ||||
|         branchId: branch.branchId | ||||
|   | ||||
		Reference in New Issue
	
	Block a user