From 0d1e8288868eb9f51fdf88454df7864b5dcdf8f0 Mon Sep 17 00:00:00 2001 From: andreasjansson Date: Thu, 12 Oct 2023 11:17:52 +0200 Subject: [PATCH] De-prioritize Replicate and Reddit links --- lib/content.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/content.js b/lib/content.js index db99982..3110aec 100644 --- a/lib/content.js +++ b/lib/content.js @@ -227,9 +227,9 @@ export async function getContent( function customPostSort(p1, p2) { const key = (p) => p.source == "reddit" - ? p.stars * 0.5 + ? p.stars * 0.3 : p.source == "replicate" - ? p.stars * 0.3 + ? p.stars * 0.1 : p.stars; return key(p2) - key(p1); }