An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Support for opening file history on the doc tree https://github.com/siyuan-note/siyuan/issues/8448
Daniel572951e8d4e2
diff --git a/kernel/model/history.go b/kernel/model/history.goindex c76b62fff9..f841856839 100644--- a/kernel/model/history.go+++ b/kernel/model/history.go@@ -370,7 +370,7 @@ func buildSearchHistoryQueryFilter(query, op, box, table string, typ int) (stmtcase HistoryTypeDoc:stmt += table + " MATCH '{title content}:(" + query + ")'"case HistoryTypeDocID:- stmt += table + " id = '" + query + "'"+ stmt += " id = '" + query + "'"case HistoryTypeAsset:stmt += table + " MATCH '{title content}:(" + query + ")'"}@@ -378,14 +378,12 @@ func buildSearchHistoryQueryFilter(query, op, box, table string, typ int) (stmtstmt += "1=1"}- if HistoryTypeDocName == typ || HistoryTypeDoc == typ || HistoryTypeDocID == typ {+ if HistoryTypeDocName == typ || HistoryTypeDoc == typ {if "all" != op {stmt += " AND op = '" + op + "'"}if HistoryTypeDocName == typ || HistoryTypeDoc == typ {stmt += " AND path LIKE '%/" + box + "/%' AND path LIKE '%.sy'"- } else if HistoryTypeDocID == typ {- stmt += " AND id = '" + query + "'"}} else if HistoryTypeAsset == typ {stmt += " AND path LIKE '%/assets/%'"