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

This commit is contained in:
Daniel 2023-06-03 21:56:18 +08:00
parent 5ecf56336c
commit e03a0d771b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -651,7 +651,7 @@ func indexHistoryDir(name string, luteEngine *lute.Lute) {
for _, asset := range assets { for _, asset := range assets {
p := strings.TrimPrefix(asset, util.HistoryDir) p := strings.TrimPrefix(asset, util.HistoryDir)
p = filepath.ToSlash(p[1:]) p = filepath.ToSlash(p[1:])
_, id := util.LastID(asset) _, id := util.LastID(p)
if !ast.IsNodeIDPattern(id) { if !ast.IsNodeIDPattern(id) {
id = "" id = ""
} }