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: Document duplicated when creating by block reference Fix https://github.com/siyuan-note/siyuan/issues/8981
Danieldd7679eac6d0
diff --git a/kernel/treenode/blocktree.go b/kernel/treenode/blocktree.goindex a67877b2e1..609483ee66 100644--- a/kernel/treenode/blocktree.go+++ b/kernel/treenode/blocktree.go@@ -112,6 +112,7 @@ func GetBlockTreeRootByPath(boxID, path string) (ret *BlockTree) {}func GetBlockTreeRootByHPath(boxID, hPath string) (ret *BlockTree) {+ hPath = gulu.Str.RemoveInvisible(hPath)blockTrees.Range(func(key, value interface{}) bool {slice := value.(*btSlice)slice.m.Lock()@@ -128,6 +129,7 @@ func GetBlockTreeRootByHPath(boxID, hPath string) (ret *BlockTree) {}func GetBlockTreeRootByHPathPreferredParentID(boxID, hPath, preferredParentID string) (ret *BlockTree) {+ hPath = gulu.Str.RemoveInvisible(hPath)var roots []*BlockTreeblockTrees.Range(func(key, value interface{}) bool {slice := value.(*btSlice)