diff options
author | dan <dan.abramov@gmail.com> | 2024-08-08 05:56:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-08 05:56:22 +0100 |
commit | 00fea10782676e3bcf7027ca3d037dcf82a25b99 (patch) | |
tree | cee53a93e8b7204c62814c81fff337c2a043de03 /src/components/FeedInterstitials.tsx | |
parent | b3092413dd21b58340e4cec739770f6d10a70248 (diff) | |
download | voidsky-00fea10782676e3bcf7027ca3d037dcf82a25b99.tar.zst |
Include popcluster in suggestion ranking (#4887)
Diffstat (limited to 'src/components/FeedInterstitials.tsx')
-rw-r--r-- | src/components/FeedInterstitials.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/components/FeedInterstitials.tsx b/src/components/FeedInterstitials.tsx index 2e8724143..eca1c86f0 100644 --- a/src/components/FeedInterstitials.tsx +++ b/src/components/FeedInterstitials.tsx @@ -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( |