Skip to content

Commit

Permalink
Include popcluster in suggestion ranking (#4887)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Aug 8, 2024
1 parent b309241 commit 00fea10
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/FeedInterstitials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,16 @@ function getRank(seenPost: SeenPost): string {
tier = 'a'
} else if (seenPost.feedContext?.startsWith('cluster')) {
tier = 'b'
} else if (seenPost.feedContext?.startsWith('ntpc')) {
} else if (seenPost.feedContext === 'popcluster') {
tier = 'c'
} else if (seenPost.feedContext?.startsWith('t-')) {
} else if (seenPost.feedContext?.startsWith('ntpc')) {
tier = 'd'
} else if (seenPost.feedContext === 'nettop') {
} else if (seenPost.feedContext?.startsWith('t-')) {
tier = 'e'
} else {
} else if (seenPost.feedContext === 'nettop') {
tier = 'f'
} else {
tier = 'g'
}
let score = Math.round(
Math.log(
Expand Down

0 comments on commit 00fea10

Please sign in to comment.