From c3da02f657094ef070a6069a481b66af3360b6be Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 29 Sep 2025 22:21:52 +0800 Subject: [PATCH] :art: `History Retention Days` supports a maximum setting of 3650 https://github.com/siyuan-note/siyuan/issues/15979 Signed-off-by: Daniel <845765@qq.com> --- kernel/api/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/api/setting.go b/kernel/api/setting.go index cd881b90f..7c9d66546 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