Skip to content

Commit d2fbfc6

Browse files
Revert "Merge branch 'stable' into edge"
This reverts commit 51665ab, reversing changes made to 3901ee5.
1 parent d95ad13 commit d2fbfc6

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

server/src/nextComment.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -358,13 +358,11 @@ export async function getNextComment(
358358
});
359359

360360
let next: GetCommentsParams | null = null;
361-
// TEMP: disable topical comment routing while we improve performance
362-
// if (shouldUseTopical) {
363-
// next = await getNextTopicalComment(zid!, pid!, withoutTids);
364-
// } else {
365-
// next = await getNextPrioritizedComment(zid!, pid!, withoutTids);
366-
// }
367-
next = await getNextPrioritizedComment(zid!, pid!, withoutTids);
361+
if (shouldUseTopical) {
362+
next = await getNextTopicalComment(zid!, pid!, withoutTids);
363+
} else {
364+
next = await getNextPrioritizedComment(zid!, pid!, withoutTids);
365+
}
368366

369367
// If topical path yielded nothing, try prioritized as a fallback
370368
if (!next && shouldUseTopical) {

0 commit comments

Comments
 (0)