about summary refs log tree commit diff
path: root/src/components/FeedInterstitials.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-08-08 05:56:22 +0100
committerGitHub <noreply@github.com>2024-08-08 05:56:22 +0100
commit00fea10782676e3bcf7027ca3d037dcf82a25b99 (patch)
treecee53a93e8b7204c62814c81fff337c2a043de03 /src/components/FeedInterstitials.tsx
parentb3092413dd21b58340e4cec739770f6d10a70248 (diff)
downloadvoidsky-00fea10782676e3bcf7027ca3d037dcf82a25b99.tar.zst
Include popcluster in suggestion ranking (#4887)
Diffstat (limited to 'src/components/FeedInterstitials.tsx')
-rw-r--r--src/components/FeedInterstitials.tsx10
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(