mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-04-26 12:58:29 -05:00
🎨 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user