order by score @ tagsuggest
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import sql from '../../sql.mjs';
|
||||
import lib from '../../lib.mjs';
|
||||
import search from '../../routeinc/search.mjs';
|
||||
|
||||
const allowedMimes = [ "audio", "image", "video", "%" ];
|
||||
export default router => {
|
||||
@ -154,7 +155,7 @@ export default router => {
|
||||
.orderBy('tagged', 'desc')
|
||||
.limit(15);
|
||||
reply.success = true;
|
||||
reply.suggestions = q;
|
||||
reply.suggestions = search(q, searchString);
|
||||
} catch(err) {
|
||||
reply.error = err.msg;
|
||||
}
|
||||
|
Reference in New Issue
Block a user