function hotScore
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.

Parameters

dump: Dump

Return Type

number

Usage

import { hotScore } from "src/utils/feed/hotScore.ts";