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

Daniel2663d0a4f41a
diff --git a/kernel/model/history.go b/kernel/model/history.go
index f841856839..fa6532f5fd 100644
--- a/kernel/model/history.go
+++ b/kernel/model/history.go
@@ -378,7 +378,7 @@ func buildSearchHistoryQueryFilter(query, op, box, table string, typ int) (stmt
stmt += "1=1"
}
- if HistoryTypeDocName == typ || HistoryTypeDoc == typ {
+ if HistoryTypeDocName == typ || HistoryTypeDoc == typ || HistoryTypeDocID == typ {
if "all" != op {
stmt += " AND op = '" + op + "'"
}