Skip to content

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

:art: Improve av https://github.com/siyuan-note/siyuan/issues/14511

Daniel8bcb5de0c3e2
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 99b975dada..e06a0d2235 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -4212,7 +4212,8 @@ func updateAttributeViewValue(tx *Transaction, attrView *av.AttributeView, keyID
// 之前绑定了块
if val.IsDetached { // 现在是非绑定块
- unbindBlockAv(tx, avID, blockID)
+ unbindBlockAv(tx, avID, val.Block.ID)
+ val.Block.ID = ""
} else {
// 现在也绑定了块