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

Liang Dingbffc33c2782a
diff --git a/kernel/model/history.go b/kernel/model/history.go
index 4e5f8f16a5..f162afa753 100644
--- a/kernel/model/history.go
+++ b/kernel/model/history.go
@@ -550,6 +550,9 @@ func indexHistoryDir(name string, luteEngine *lute.Lute) {
}
title := tree.Root.IALAttr("title")
+ if "" == title {
+ title = "Untitled"
+ }
content := tree.Root.Content()
p := strings.TrimPrefix(doc, util.HistoryDir)
p = filepath.ToSlash(p[1:])