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: List file/asset history following the limit of editor history retention days https://github.com/siyuan-note/siyuan/issues/9723
Daniele0d0c5c4d583
diff --git a/kernel/model/history.go b/kernel/model/history.goindex cbc6e3416c..caba1466bf 100644--- a/kernel/model/history.go+++ b/kernel/model/history.go@@ -394,6 +394,9 @@ func buildSearchHistoryQueryFilter(query, op, box, table string, typ int) (stmt} else if HistoryTypeAsset == typ {stmt += " AND path LIKE '%/assets/%'"}++ ago := time.Now().Add(-24 * time.Hour * time.Duration(Conf.Editor.HistoryRetentionDays))+ stmt += " AND created > '" + fmt.Sprintf("%d", ago.Unix()) + "'"return}