Ranks dumps for the "hot" and "journal" tabs of the index page.

Functions

f
hotScore(dump: Dump): number

Returns the score that DumpFeed and composeJournal sort by, highest first. It grows with the votes and decays with the age in hours, so a new dump without votes can outrank an old popular one. The server doesn't rank, so only the loaded dumps are ranked.

Usage

import * as mod from "src/utils/feed/hotScore.ts";