Skip to content

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

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

Danielea178b40f349
diff --git a/kernel/model/history.go b/kernel/model/history.go
index 37be853fa1..caa6cc38a3 100644
--- a/kernel/model/history.go
+++ b/kernel/model/history.go
@@ -987,7 +987,7 @@ func indexHistoryDir(name string, luteEngine *lute.Lute) {
}
p := strings.TrimPrefix(database, util.HistoryDir)
p = filepath.ToSlash(p[1:])
- avName, _ := av.GetAttributeViewName(id)
+ avName, _ := av.GetAttributeViewNameByPath(database)
histories = append(histories, &sql.History{
ID: id,
Type: HistoryTypeDatabase,