MCPcopy Create free account
hub / github.com/dailydotdev/apps / getSourceFactor

Function getSourceFactor

packages/shared/src/features/feedExplain/describe.ts:396–398  ·  view source on GitHub ↗
(
  explain: FeedItemExplain | null | undefined,
)

Source from the content-addressed store, hash-verified

394
395/** The multiplier a source's posts got from a follow or level, else 1. */
396export const getSourceFactor = (
397 explain: FeedItemExplain | null | undefined,
398): number => getSideFactor(explain, FollowSide.Source);
399
400/** The multiplier an author's posts got from a follow or level, else 1. */
401export const getAuthorFactor = (

Callers 3

getPageSourcesFunction · 0.90
FeedExplanationModalFunction · 0.90
SignalRowFunction · 0.90

Calls 1

getSideFactorFunction · 0.85

Tested by

no test coverage detected