Skip to content

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

:art: Subdocuments created by the database are not displayed in the doc tree https://github.com/siyuan-note/siyuan/issues/9091

Daniel02a4eaa73ba0
diff --git a/kernel/api/filetree.go b/kernel/api/filetree.go
index 86b6988a03..938dd04950 100644
--- a/kernel/api/filetree.go
+++ b/kernel/api/filetree.go
@@ -510,6 +510,10 @@ func createDocWithMd(c *gin.Context) {
}
ret.Data = id
+ if !showInDocTree {
+ return
+ }
+
box := model.Conf.Box(notebook)
b, _ := model.GetBlock(id, nil)
p := b.Path
@@ -648,7 +652,7 @@ func listDocsByPath(c *gin.Context) {
maxListCount = math.MaxInt
}
}
- showHidden := true
+ showHidden := false
if arg["showHidden"] != nil {
showHidden = arg["showHidden"].(bool)
}