fix: illegal files are not displayed (close #1729)

This commit is contained in:
Noah Hsu
2022-09-20 20:14:38 +08:00
parent 1ab73e0742
commit 9181861f47
2 changed files with 4 additions and 2 deletions

View File

@ -62,7 +62,9 @@ func (d *Quark) GetFiles(parent string) ([]File, error) {
"pdir_fid": parent,
"_size": strconv.Itoa(size),
"_fetch_total": "1",
"_sort": "file_type:asc," + d.OrderBy + ":" + d.OrderDirection,
}
if d.OrderBy != "none" {
query["_sort"] = "file_type:asc," + d.OrderBy + ":" + d.OrderDirection
}
for {
query["_page"] = strconv.Itoa(page)