Skip to content

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

:art: `History Retention Days` supports a maximum setting of 3650 https://github.com/siyuan-note/siyuan/issues/15979

Danielc3da02f65709
diff --git a/kernel/api/setting.go b/kernel/api/setting.go
index cd881b90f7..7c9d66546f 100644
--- a/kernel/api/setting.go
+++ b/kernel/api/setting.go
@@ -310,7 +310,7 @@ func setEditor(c *gin.Context) {
}
if 1 > editor.HistoryRetentionDays {
- editor.HistoryRetentionDays = 1
+ editor.HistoryRetentionDays = 30
}
if 3650 < editor.HistoryRetentionDays {
editor.HistoryRetentionDays = 3650