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-bound block primary key supports setting static anchor text https://github.com/siyuan-note/siyuan/issues/10049
Daniel077a46ac707d
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex 9899d58fbb..b84b723ca0 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -3112,7 +3112,7 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID string, valueDareturn}- updateBlockValueStaticText(node, tree, avID, strings.TrimSpace(val.Block.Content))+ updateBlockValueStaticText(tx, node, tree, avID, strings.TrimSpace(val.Block.Content))}}}@@ -3281,12 +3281,12 @@ func bindBlockAv0(tx *Transaction, avID string, node *ast.Node, tree *parse.Treereturn}-func updateBlockValueStaticText(node *ast.Node, tree *parse.Tree, avID, text string) {+func updateBlockValueStaticText(tx *Transaction, node *ast.Node, tree *parse.Tree, avID, text string) {attrs := parse.IAL2Map(node.KramdownIAL)attrs[av.NodeAttrViewStaticText+"-"+avID] = textvar err errorif nil != tree {- err = setNodeAttrsWithTx(nil, node, tree, attrs)+ err = setNodeAttrsWithTx(tx, node, tree, attrs)} else {err = setNodeAttrs(node, nil, attrs)}