mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
🎨 Support for opening file history on the doc tree https://github.com/siyuan-note/siyuan/issues/8448
This commit is contained in:
parent
5ecf56336c
commit
e03a0d771b
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue