Skip to content

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

:art: Support for opening file history on the doc tree https://github.com/siyuan-note/siyuan/issues/8448

Daniele03a0d771b3c
diff --git a/kernel/model/history.go b/kernel/model/history.go
index c845b16965..93d59bfdf8 100644
--- a/kernel/model/history.go
+++ b/kernel/model/history.go
@@ -651,7 +651,7 @@ func indexHistoryDir(name string, luteEngine *lute.Lute) {
for _, asset := range assets {
p := strings.TrimPrefix(asset, util.HistoryDir)
p = filepath.ToSlash(p[1:])
- _, id := util.LastID(asset)
+ _, id := util.LastID(p)
if !ast.IsNodeIDPattern(id) {
id = ""
}