remove frontend default sort from discussion search state

This commit is contained in:
MauBiBot 2026-04-22 19:31:30 +02:00
parent bce3258325
commit bf90e3279e
3 changed files with 2 additions and 7 deletions

2
js/dist/forum.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -17,11 +17,6 @@ export default function extendDiscussionState() {
...params.page,
};
// Default to latest sort when searching without an explicit sort parameter.
// Matches the backend default and keeps the dropdown label in sync.
if (!params.sort) {
params.sort = '-lastPostedAt';
}
if (Array.isArray(params.include)) {
params.include = params.include.join(',');