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: Update av https://github.com/siyuan-note/siyuan/issues/9091#issuecomment-1733776589
Daniel4dd1a9726226
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex 45c3e6f317..4bde9c3a85 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -529,6 +529,19 @@ func (tx *Transaction) removeAttributeViewBlock(operation *Operation) (err error}delete(attrs, NodeAttrNamePrefixAvKey+operation.AvID+"-"+values.KeyID)node.RemoveIALAttr(NodeAttrNamePrefixAvKey + operation.AvID + "-" + values.KeyID)++ if avs := attrs[NodeAttrNameAvs]; "" != avs {+ avIDs := strings.Split(avs, ",")+ avIDs = gulu.Str.RemoveElem(avIDs, operation.AvID)+ if 0 == len(avIDs) {+ delete(attrs, NodeAttrNameAvs)+ node.RemoveIALAttr(NodeAttrNameAvs)+ } else {+ attrs[NodeAttrNameAvs] = strings.Join(avIDs, ",")+ node.SetIALAttr(NodeAttrNameAvs, strings.Join(avIDs, ","))+ }+ }+if err = setNodeAttrsWithTx(tx, node, tree, attrs); nil != err {return}