fix sortby key, should be confidental and not best

This commit is contained in:
teddit 2022-06-11 21:55:32 +02:00
parent 4663b3a78d
commit a0c74aa309
1 changed files with 5 additions and 0 deletions

View File

@ -611,6 +611,11 @@ subredditRoutes.get(
viewing_comment = true; viewing_comment = true;
} }
if (sortby === 'best') {
// in Reddit the sorting "best" is the label, but the actual key "confidence"
sortby = 'confidence';
}
if (!sortby) { if (!sortby) {
sortby = config.post_comments_sort; sortby = config.post_comments_sort;
} }