Skip to content

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

:art: Improve fold heading editing https://github.com/siyuan-note/siyuan/issues/15989

Danielf4fe18a6805c
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go
index 4f338af528..02372b44e7 100644
--- a/kernel/model/transaction.go
+++ b/kernel/model/transaction.go
@@ -1596,9 +1596,7 @@ func unfoldHeading(heading *ast.Node) {
heading.RemoveIALAttr("fold")
heading.RemoveIALAttr("heading-fold")
- evt := util.NewCmdResult("unfoldHeading", 0, util.PushModeBroadcast)
- evt.Data = map[string]interface{}{"id": heading.ID}
- util.PushEvent(evt)
+ util.BroadcastByType("protyle", "unfoldHeading", 0, "", map[string]interface{}{"id": heading.ID})
}
func getRefDefIDs(node *ast.Node) (refDefIDs []string) {