An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: https://github.com/siyuan-note/siyuan/issues/11776 https://github.com/siyuan-note/siyuan/issues/11773
Danielef6daed3d5bb
diff --git a/kernel/treenode/blocktree.go b/kernel/treenode/blocktree.goindex 82d1a16939..15755a34d0 100644--- a/kernel/treenode/blocktree.go+++ b/kernel/treenode/blocktree.go@@ -204,7 +204,7 @@ func CountBlocks() (ret int) {func GetBlockTreeRootByPath(boxID, path string) (ret *BlockTree) {ret = &BlockTree{}- sqlStmt := "SELECT * FROM blocktrees WHERE box_id = ? AND path = ?"+ sqlStmt := "SELECT * FROM blocktrees WHERE box_id = ? AND path = ? AND type = 'd'"err := db.QueryRow(sqlStmt, boxID, path).Scan(&ret.ID, &ret.RootID, &ret.ParentID, &ret.BoxID, &ret.Path, &ret.HPath, &ret.Updated, &ret.Type)if nil != err {ret = nil