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: Improve av https://github.com/siyuan-note/siyuan/issues/15508
Daniel35813e4b2a85
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex d445556171..6b676d6864 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -4227,20 +4227,12 @@ func updateAttributeViewValue(tx *Transaction, attrView *av.AttributeView, keyID} else { // 之前绑定的块和现在绑定的块一样content := strings.TrimSpace(val.Block.Content)node, tree, _ := getNodeByBlockID(tx, val.BlockID)- updateStaticText := true_, blockText := getNodeAvBlockText(node)if "" == content {// 使用动态锚文本val.Block.Content = util.UnescapeHTML(blockText)} else {- if blockText == content {- updateStaticText = false- } else {- val.Block.Content = content- }- }-- if updateStaticText {+ val.Block.Content = content// 设置静态锚文本 Database-bound block primary key supports setting static anchor text https://github.com/siyuan-note/siyuan/issues/10049updateBlockValueStaticText(tx, node, tree, avID, content)}