Browse Source

:art: Automatically download network assets when the cloud inbox is moved to docs https://github.com/siyuan-note/siyuan/issues/9775

Daniel 1 year ago
parent
commit
d802980fb7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      kernel/api/filetree.go

+ 4 - 0
kernel/api/filetree.go

@@ -434,6 +434,10 @@ func createDoc(c *gin.Context) {
 
 	box := model.Conf.Box(notebook)
 	pushCreate(box, p, tree.Root.ID, arg)
+
+	ret.Data = map[string]interface{}{
+		"id": tree.Root.ID,
+	}
 }
 
 func createDailyNote(c *gin.Context) {