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

Function isSourceFollowed

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

Source from the content-addressed store, hash-verified

93 * follow counted, or was set to Off, which only a follow is offered.
94 */
95export const isSourceFollowed = (
96 explain: FeedItemExplain | null | undefined,
97): boolean =>
98 isRankedExplain(explain) &&
99 (isSourceFollow(explain) ||
100 explain.follow.source_control === FollowControl.Off);
101
102/** The reader followed the card's author when it was ranked. */
103export const isAuthorFollowed = (

Callers 3

getPageSourcesFunction · 0.90
FeedExplanationModalFunction · 0.90
SignalRowFunction · 0.90

Calls 2

isRankedExplainFunction · 0.90
isSourceFollowFunction · 0.85

Tested by

no test coverage detected