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: 重建索引时补全文档树缺失的 updated 字段
Liang Ding559a063c63f0
diff --git a/kernel/model/index.go b/kernel/model/index.goindex 3f0e64b3b1..55b7995ba7 100644--- a/kernel/model/index.go+++ b/kernel/model/index.go@@ -78,6 +78,13 @@ func (box *Box) Index(fullRebuildIndex bool) (treeCount int, treeSize int64) {}docIAL := parse.IAL2MapUnEsc(tree.Root.KramdownIAL)+ if "" == docIAL["updated"] {+ updated := util.TimeFromID(tree.Root.ID)+ tree.Root.SetIALAttr("updated", updated)+ docIAL["updated"] = updated+ writeJSONQueue(tree)+ }+cache.PutDocIAL(p, docIAL)util.IncBootProgress(bootProgressPart, fmt.Sprintf(Conf.Language(92), util.ShortPathForBootingDisplay(tree.Path)))