feat(cloudreve): folder size count and switch (#5457 close #5395)

This commit is contained in:
itsHenry
2023-11-04 13:35:09 +08:00
committed by GitHub
parent a6325967d0
commit 65c5ec0c34
4 changed files with 21 additions and 5 deletions

View File

@ -151,6 +151,9 @@ func convertSrc(obj model.Obj) map[string]interface{} {
}
func (d *Cloudreve) GetThumb(file Object) (model.Thumbnail, error) {
if !d.Addition.EnableThumbAndFolderSize {
return model.Thumbnail{}, nil
}
ua := d.CustomUA
if ua == "" {
ua = base.UserAgent