Skip to content

Commit

Permalink
chore: remove unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
riya09 committed Nov 8, 2024
1 parent e027fb6 commit c92f605
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions apps/jonogon-core/src/api/utility/feed-algorithm.mts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ const VOTE_THRESHOLD = 30 // minimum votes needed to be considered in the top of
function dateDiff(date1: number, date2: number): number {
return ((date2 - date1) / 1000) / (VOTE_DECAY_CONSTANT * SECONDS_IN_DAY)
}
/**
* Calculates the time weight based on the age of an activity.
* The new activity gets higher weight.
* @param dateTime - The date of the activity.
* @returns The calculated time weight.
*/
function calculateNoveltyBoost() {
const newScore = BOOST_WEIGHT
const logScore = Math.log(newScore);
Expand Down

0 comments on commit c92f605

Please sign in to comment.