Skip to content

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

:art: Fix tree id https://github.com/siyuan-note/siyuan/issues/14363

Danielb3dbcec3ccb7
diff --git a/kernel/filesys/tree.go b/kernel/filesys/tree.go
index 0e293a3ebc..346e98f272 100644
--- a/kernel/filesys/tree.go
+++ b/kernel/filesys/tree.go
@@ -281,10 +281,10 @@ func parseJSON2Tree(boxID, p string, jsonData []byte, luteEngine *lute.Lute) (re
if pathID := util.GetTreeID(p); pathID != ret.Root.ID {
needFix = true
+ logging.LogInfof("reset tree id from [%s] to [%s]", ret.Root.ID, pathID)
ret.Root.ID = pathID
ret.ID = pathID
ret.Root.SetIALAttr("id", ret.ID)
- logging.LogInfof("reset tree id from [%s] to [%s]", ret.Root.ID, pathID)
}
if needFix {