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/6135

Liang Ding289c5f1758fb
diff --git a/kernel/model/block.go b/kernel/model/block.go
index 6007b74b81..9a85e6a8e4 100644
--- a/kernel/model/block.go
+++ b/kernel/model/block.go
@@ -242,7 +242,7 @@ func GetHeadingDeleteTransaction(id string) (transaction *Transaction, err error
if nil != n.Parent {
op.ParentID = n.Parent.ID
}
- if nil != n.Parent {
+ if nil != n.Previous {
op.PreviousID = n.Previous.ID
}
op.Action = "insert"