An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Database block support specified view https://github.com/siyuan-note/siyuan/issues/10443
Daniel71abe4057f42
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex 893b30b6e1..942ad365bd 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -1343,6 +1343,7 @@ func (tx *Transaction) doRemoveAttrViewView(operation *Operation) (ret *TxErr) {}mirrorBlocks := av.GetMirrorBlockIDs(avID)+ mirrorBlockTree := map[string]*parse.Tree{}trees := map[string]*parse.Tree{}for _, mirrorBlock := range mirrorBlocks {bt := treenode.GetBlockTree(mirrorBlock)@@ -1351,20 +1352,21 @@ func (tx *Transaction) doRemoveAttrViewView(operation *Operation) (ret *TxErr) {continue}- tree := trees[mirrorBlock]+ tree := mirrorBlockTree[mirrorBlock]if nil == tree {tree, _ = loadTreeByBlockID(mirrorBlock)if nil == tree {logging.LogErrorf("load tree by block ID [%s] failed", mirrorBlock)continue}- trees[mirrorBlock] = tree+ trees[tree.ID] = tree+ mirrorBlockTree[mirrorBlock] = tree}}var nodes []*ast.Nodefor _, mirrorBlock := range mirrorBlocks {- tree := trees[mirrorBlock]+ tree := mirrorBlockTree[mirrorBlock]node := treenode.GetNodeInTree(tree, mirrorBlock)if nil == node {logging.LogErrorf("get node in tree by block ID [%s] failed", mirrorBlock)