Skip to content

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

:art: Database-bound block primary key supports setting static anchor text https://github.com/siyuan-note/siyuan/issues/10049

Daniel04255d86edce
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index a8f7647bcd..91345c4506 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -3288,7 +3288,7 @@ func updateBlockValueStaticText(tx *Transaction, node *ast.Node, tree *parse.Tre
if nil != tx {
err = setNodeAttrsWithTx(tx, node, tree, attrs)
} else {
- err = setNodeAttrs(node, nil, attrs)
+ err = setNodeAttrs(node, tree, attrs)
}
if err != nil {
logging.LogWarnf("set node [%s] attrs failed: %s", node.ID, err)