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

Daniel7278f4dddb24
diff --git a/kernel/api/block_op.go b/kernel/api/block_op.go
index 718886a2dc..faa766051c 100644
--- a/kernel/api/block_op.go
+++ b/kernel/api/block_op.go
@@ -806,7 +806,10 @@ func batchUpdateBlock(c *gin.Context) {
return
}
- blocksArg := arg["blocks"].([]interface{})
+ var blocksArg []interface{}
+ if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("blocks", true, &blocksArg)) {
+ return
+ }
type updateBlockArg struct {
ID string