Skip to content

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

:bug: Create doc with ref Fix https://github.com/siyuan-note/siyuan/issues/9329

Daniel11cc108893b3
diff --git a/kernel/model/path.go b/kernel/model/path.go
index 2f29507401..67da750ef7 100644
--- a/kernel/model/path.go
+++ b/kernel/model/path.go
@@ -47,8 +47,9 @@ func createDocsByHPath(boxID, hPath, content, parentID, id string /* id 参数
// 如果父文档存在且 ID 一致,则直接在父文档下创建
p := strings.TrimSuffix(preferredParent.Path, ".sy") + "/" + id + ".sy"
if _, err = createDoc(boxID, p, name, content); nil != err {
- return
+ logging.LogErrorf("create doc [%s] failed: %s", p, err)
}
+ return
}
} else {
if "" == id {