Skip to content

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

:art: Improve reference count refresh after converting heading block level https://github.com/siyuan-note/siyuan/issues/15298

Daniel848037b0f599
diff --git a/kernel/model/block.go b/kernel/model/block.go
index 0b68857809..2fcd8d856f 100644
--- a/kernel/model/block.go
+++ b/kernel/model/block.go
@@ -655,6 +655,7 @@ func GetHeadingLevelTransaction(id string, level int) (transaction *Transaction,
ccH := c.ChildrenByType(ast.NodeHeading)
childrenHeadings = append(childrenHeadings, ccH...)
}
+ fillBlockRefCount(childrenHeadings)
transaction = &Transaction{}
luteEngine := util.NewLute()