ForYou: favor recentness in most notes
This commit is contained in:
parent
e2ab1b4e3f
commit
3c017f89be
@ -202,7 +202,7 @@ async function getFeedEvents(reactedToIds: Map<string, number>, reactedToAuthors
|
||||
const bFavoriteness = normalize(reactedToAuthors.get(b.pubkey) || 0, 0, maxFavoriteness);
|
||||
|
||||
// randomly big or small weight for recentness
|
||||
const recentnessWeight = Math.random() > 0.5 ? -0.1 : -10;
|
||||
const recentnessWeight = Math.random() > 0.75 ? -0.1 : -10;
|
||||
const aScore = aReactions + recentnessWeight * aAge + aFavoriteness * favoritenessWeight;
|
||||
const bScore = bReactions + recentnessWeight * bAge + bFavoriteness * favoritenessWeight;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user