Adapt "likes" to "replies"
parent
b6acab7d82
commit
7d3d70e24e
|
@ -167,7 +167,8 @@ export default class HandiworkSearchQuery implements IQuery {
|
||||||
|
|
||||||
// Adapt order filter
|
// Adapt order filter
|
||||||
let orderFilter = this.order as string;
|
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;
|
query.order = orderFilter as TThreadOrder;
|
||||||
|
|
||||||
return query;
|
return query;
|
||||||
|
|
Loading…
Reference in New Issue