Skip to content

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

:art: 移动折叠标题后自动展开 https://github.com/siyuan-note/siyuan/issues/6673

Liang Ding168d673a0c90
diff --git a/kernel/model/heading.go b/kernel/model/heading.go
index 80e95b92f0..79f5075788 100644
--- a/kernel/model/heading.go
+++ b/kernel/model/heading.go
@@ -34,7 +34,7 @@ import (
func (tx *Transaction) doFoldHeading(operation *Operation) (ret *TxErr) {
headingID := operation.ID
- tree, err := loadTreeByBlockID(headingID)
+ tree, err := tx.loadTree(headingID)
if nil != err {
return &TxErr{code: TxErrCodeBlockNotFound, id: headingID}
}
@@ -69,7 +69,7 @@ func (tx *Transaction) doFoldHeading(operation *Operation) (ret *TxErr) {
func (tx *Transaction) doUnfoldHeading(operation *Operation) (ret *TxErr) {
headingID := operation.ID
- tree, err := loadTreeByBlockID(headingID)
+ tree, err := tx.loadTree(headingID)
if nil != err {
return &TxErr{code: TxErrCodeBlockNotFound, id: headingID}
}