fix: sorting the flags list by newest is not considered a filter

... as it is default
v1.18.x
Julian Lam 5 years ago
parent e047b72c87
commit 3efe2362e2

@ -88,6 +88,9 @@ modsController.flags.list = async function (req, res, next) {
} else {
sort = sorts.includes(req.query.sort) ? req.query.sort : null;
}
if (sort === 'newest') {
sort = undefined;
}
hasFilter = hasFilter || !!sort;
// Save filters and sorting into session unless removed

Loading…
Cancel
Save