Skip to content

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

:technologist: Improve kernel API `/api/block/updateBlock` and `/api/block/batchUpdateBlock` https://github.com/siyuan-note/siyuan/issues/15301

Danielde67799c8f8e
diff --git a/kernel/api/block_op.go b/kernel/api/block_op.go
index 7bd20fa024..dc60f2cf95 100644
--- a/kernel/api/block_op.go
+++ b/kernel/api/block_op.go
@@ -597,9 +597,6 @@ func updateBlock(c *gin.Context) {
for _, n := range toAppends {
oldTree.Root.AppendChild(n)
}
-
- model.WriteTreeUpsertQueue(oldTree)
- model.ReloadProtyle(id)
} else {
if ast.NodeListItem == node.Type && ast.NodeList == tree.Root.FirstChild.Type {
// 使用 API `api/block/updateBlock` 更新列表项时渲染错误 https://github.com/siyuan-note/siyuan/issues/4658