Skip to content

Commit

Permalink
De-prioritize Replicate and Reddit links
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjansson committed Oct 12, 2023
1 parent 6333ff3 commit 0d1e828
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

1 comment on commit 0d1e828

@vercel
Copy link

@vercel vercel bot commented on 0d1e828 Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.