Adapt "likes" to "replies"

pull/81/head
MillenniumEarl 2021-03-04 11:58:03 +01:00
parent b6acab7d82
commit 7d3d70e24e
1 changed files with 2 additions and 1 deletions

View File

@ -167,7 +167,8 @@ export default class HandiworkSearchQuery implements IQuery {
// Adapt order filter
let orderFilter = this.order as string;
if (orderFilter === "likes" || orderFilter === "title") orderFilter = "relevance";
if (orderFilter === "title") orderFilter = "relevance";
else if (orderFilter === "likes") orderFilter = "replies";
query.order = orderFilter as TThreadOrder;
return query;