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

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-09-29 22:21:52 +08:00
parent 9e78abbb4b
commit c3da02f657
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -310,7 +310,7 @@ func setEditor(c *gin.Context) {
} }
if 1 > editor.HistoryRetentionDays { if 1 > editor.HistoryRetentionDays {
editor.HistoryRetentionDays = 1 editor.HistoryRetentionDays = 30
} }
if 3650 < editor.HistoryRetentionDays { if 3650 < editor.HistoryRetentionDays {
editor.HistoryRetentionDays = 3650 editor.HistoryRetentionDays = 3650