An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve checkBlockExist https://github.com/siyuan-note/siyuan/issues/17742
Daniel72abd1bfc7fb
diff --git a/kernel/api/block.go b/kernel/api/block.goindex 79b66930d3..71cb42147c 100644--- a/kernel/api/block.go+++ b/kernel/api/block.go@@ -373,13 +373,7 @@ func checkBlockExist(c *gin.Context) {}id := arg["id"].(string)- b, err := model.GetBlock(id, nil)- if errors.Is(err, model.ErrIndexing) {- ret.Code = 0- ret.Data = false- return- }- ret.Data = nil != b+ ret.Data = treenode.ExistBlockTree(id)}func getDocInfo(c *gin.Context) {