Skip to content

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

:art: 支持文档块制作闪卡 Fix https://github.com/siyuan-note/siyuan/issues/7460

Liang Dingf0bcd7f51f81
diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go
index 3d118b8601..bf6e1214a5 100644
--- a/kernel/model/flashcard.go
+++ b/kernel/model/flashcard.go
@@ -249,7 +249,7 @@ func getTreeSubTreeChildBlocks(rootID string) (treeBlockIDs map[string]bool) {
for _, t := range trees {
ast.Walk(t.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
- if !entering || !n.IsBlock() || ast.NodeDocument == n.Type {
+ if !entering || !n.IsBlock() {
return ast.WalkContinue
}