🎨 Supports cleaning up unreferenced databases https://github.com/siyuan-note/siyuan/issues/11569

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-01-30 00:12:29 +08:00
parent a2a3bca000
commit 6e85d12d5e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 19 additions and 1 deletions

View file

@ -987,7 +987,7 @@ func indexHistoryDir(name string, luteEngine *lute.Lute) {
}
p := strings.TrimPrefix(database, util.HistoryDir)
p = filepath.ToSlash(p[1:])
content := av.GetAttributeViewContent(id)
content := av.GetAttributeViewContentByPath(database)
histories = append(histories, &sql.History{
ID: id,
Type: HistoryTypeDatabase,