An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Fix https://github.com/siyuan-note/siyuan/issues/16430
Daniel712092d49ecf
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex 3cd2c92698..dc590b8364 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -4848,14 +4848,10 @@ func updateAttributeViewValue(tx *Transaction, attrView *av.AttributeView, keyIDif av.KeyTypeRelation == val.Type {// 关联字段得 content 是自动渲染的,所以不需要保存val.Relation.Contents = nil-- // 去重val.Relation.BlockIDs = gulu.Str.RemoveDuplicatedElem(val.Relation.BlockIDs)// 计算关联变更模式- if len(oldRelationBlockIDs) == len(val.Relation.BlockIDs) {- relationChangeMode = 0- } else {+ if !slices.Equal(oldRelationBlockIDs, val.Relation.BlockIDs) {if len(oldRelationBlockIDs) > len(val.Relation.BlockIDs) {relationChangeMode = 2} else {