Include popcluster in suggestion ranking (#4887)
parent
b3092413dd
commit
00fea10782
|
@ -92,14 +92,16 @@ function getRank(seenPost: SeenPost): string {
|
||||||
tier = 'a'
|
tier = 'a'
|
||||||
} else if (seenPost.feedContext?.startsWith('cluster')) {
|
} else if (seenPost.feedContext?.startsWith('cluster')) {
|
||||||
tier = 'b'
|
tier = 'b'
|
||||||
} else if (seenPost.feedContext?.startsWith('ntpc')) {
|
} else if (seenPost.feedContext === 'popcluster') {
|
||||||
tier = 'c'
|
tier = 'c'
|
||||||
} else if (seenPost.feedContext?.startsWith('t-')) {
|
} else if (seenPost.feedContext?.startsWith('ntpc')) {
|
||||||
tier = 'd'
|
tier = 'd'
|
||||||
} else if (seenPost.feedContext === 'nettop') {
|
} else if (seenPost.feedContext?.startsWith('t-')) {
|
||||||
tier = 'e'
|
tier = 'e'
|
||||||
} else {
|
} else if (seenPost.feedContext === 'nettop') {
|
||||||
tier = 'f'
|
tier = 'f'
|
||||||
|
} else {
|
||||||
|
tier = 'g'
|
||||||
}
|
}
|
||||||
let score = Math.round(
|
let score = Math.round(
|
||||||
Math.log(
|
Math.log(
|
||||||
|
|
Loading…
Reference in New Issue