mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01: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:
parent
02602f886e
commit
e36592ab5c
4 changed files with 12 additions and 2 deletions
|
|
@ -309,6 +309,13 @@ func setEditor(c *gin.Context) {
|
|||
editor.KaTexMacros = "{}"
|
||||
}
|
||||
|
||||
if 1 > editor.HistoryRetentionDays {
|
||||
editor.HistoryRetentionDays = 1
|
||||
}
|
||||
if 3650 < editor.HistoryRetentionDays {
|
||||
editor.HistoryRetentionDays = 3650
|
||||
}
|
||||
|
||||
oldVirtualBlockRef := model.Conf.Editor.VirtualBlockRef
|
||||
oldVirtualBlockRefInclude := model.Conf.Editor.VirtualBlockRefInclude
|
||||
oldVirtualBlockRefExclude := model.Conf.Editor.VirtualBlockRefExclude
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue