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 move tx
Danielc22a78e565c5
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.goindex 2744d0080b..9c52ec7f19 100644--- a/kernel/model/transaction.go+++ b/kernel/model/transaction.go@@ -446,6 +446,11 @@ func (tx *Transaction) doMove(operation *Operation) (ret *TxErr) {srcEmptyList = srcNode.Parent}+ if nil != operation.Context && "true" == operation.Context["removeFold"] {+ srcNode.RemoveIALAttr("heading-fold")+ srcNode.RemoveIALAttr("fold")+ }+targetPreviousID := operation.PreviousIDtargetParentID := operation.ParentIDif "" != targetPreviousID {