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

Function getTopicNote

packages/shared/src/features/feedExplain/describe.ts:150–160  ·  view source on GitHub ↗
(
  interest: FeedProfileInterest | undefined,
)

Source from the content-addressed store, hash-verified

148 * reader set brings it in.
149 */
150export const getTopicNote = (
151 interest: FeedProfileInterest | undefined,
152): string | undefined => {
153 if (!interest || interest.origin === ExplainOrigin.Set) {
154 return 'You set its boost.';
155 }
156 return interest.origin === ExplainOrigin.Inferred &&
157 interest.strength === ExplainStrength.EarlySignal
158 ? 'Counts once you read more about it.'
159 : undefined;
160};
161
162export interface ReasonParts {
163 lead: string;

Callers 1

getNoteFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected