Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve duplicate doc refresh doc tree

Danielfc3f4472804c
diff --git a/kernel/api/filetree.go b/kernel/api/filetree.go
index 9055809851..7448e08cdf 100644
--- a/kernel/api/filetree.go
+++ b/kernel/api/filetree.go
@@ -526,11 +526,10 @@ func duplicateDoc(c *gin.Context) {
return
}
- p := tree.Path
notebook := tree.Box
box := model.Conf.Box(notebook)
model.DuplicateDoc(tree)
- pushCreate(box, p, tree.Root.ID, arg)
+ pushCreate(box, tree.Path, tree.ID, arg)
ret.Data = map[string]interface{}{
"id": tree.Root.ID,