Skip to content

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

:art: 移动折叠标题后自动展开 https://github.com/siyuan-note/siyuan/issues/6673

Liang Dingb8046c9ad7c1
diff --git a/kernel/model/block.go b/kernel/model/block.go
index 95ad075848..0d805e647b 100644
--- a/kernel/model/block.go
+++ b/kernel/model/block.go
@@ -262,9 +262,8 @@ func GetHeadingChildrenIDs(id string) (ret []string) {
return
}
- nodes := append([]*ast.Node{}, heading)
children := treenode.HeadingChildren(heading)
- nodes = append(nodes, children...)
+ nodes := append([]*ast.Node{}, children...)
for _, n := range nodes {
ret = append(ret, n.ID)
}