Skip to content

Commit

Permalink
Non-linear weighting for Replicate links
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjansson committed Oct 13, 2023
1 parent 0d1e828 commit fa9a439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function customPostSort(p1, p2) {
p.source == "reddit"
? p.stars * 0.3
: p.source == "replicate"
? p.stars * 0.1
? Math.pow(p.stars, 0.6)
: p.stars;
return key(p2) - key(p1);
}
Expand Down

1 comment on commit fa9a439

@vercel
Copy link

@vercel vercel bot commented on fa9a439 Oct 13, 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.