🎇 Pagination #257

This commit is contained in:
微凉
2022-01-04 21:21:27 +08:00
parent b60c7ecd9e
commit ef5cad1bf0
8 changed files with 98 additions and 43 deletions

View File

@ -28,7 +28,7 @@ func CheckParent(path string, password string) bool {
}
func CheckDownLink(path string, passwordMd5 string, name string) bool {
if !conf.CheckDown {
if !conf.GetBool("check down link") {
return true
}
meta, err := model.GetMetaByPath(path)
@ -40,7 +40,7 @@ func CheckDownLink(path string, passwordMd5 string, name string) bool {
}
return true
} else {
if !conf.CheckParent {
if !conf.GetBool("check parent folder") {
return true
}
if path == "/" {