feat: add readme field to list resp

This commit is contained in:
Noah Hsu
2022-06-30 15:41:58 +08:00
parent e614faa99b
commit 35b04ffa9c
5 changed files with 23 additions and 11 deletions

View File

@ -59,7 +59,7 @@ func whetherHide(user *model.User, meta *model.Meta, path string) bool {
return false
}
// if meta doesn't apply to sub_folder, don't hide
if !utils.PathEqual(meta.Path, path) && !meta.SubFolder {
if !utils.PathEqual(meta.Path, path) && !meta.HSub {
return false
}
// if is guest, hide