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: Fixed mirroring database display view https://github.com/siyuan-note/siyuan/issues/15279
Daniel7a64af1e88cf
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.goindex 7b306806d2..26de601534 100644--- a/kernel/model/transaction.go+++ b/kernel/model/transaction.go@@ -1283,6 +1283,26 @@ func (tx *Transaction) doUpdate(operation *Operation) (ret *TxErr) {upsertAvBlockRel(updatedNode)+ if ast.NodeAttributeView == updatedNode.Type {+ // 设置视图 https://github.com/siyuan-note/siyuan/issues/15279+ attrView, parseErr := av.ParseAttributeView(updatedNode.AttributeViewID)+ if nil == parseErr {+ v := attrView.GetView(attrView.ViewID)+ if nil != v {+ updatedNode.AttributeViewType = string(v.LayoutType)+ attrs := parse.IAL2Map(updatedNode.KramdownIAL)+ if "" == attrs[av.NodeAttrView] {+ attrs[av.NodeAttrView] = v.ID+ err = setNodeAttrs(updatedNode, tree, attrs)+ if err != nil {+ logging.LogWarnf("set node [%s] attrs failed: %s", operation.BlockID, err)+ return &TxErr{code: TxErrCodeBlockNotFound, id: id}+ }+ }+ }+ }+ }+checkUpsertInUserGuide(tree)return}