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

Function getAuthorLabel

packages/shared/src/features/feedExplain/describe.ts:110–112  ·  view source on GitHub ↗
(
  author: Pick<Author, 'name' | 'username'>,
)

Source from the content-addressed store, hash-verified

108 explain.follow.author_control === FollowControl.Off);
109
110export const getAuthorLabel = (
111 author: Pick<Author, 'name' | 'username'>,
112): string => author.name || `@${author.username}`;
113
114const getCategory = (
115 explain: FeedItemExplain | null | undefined,

Callers 5

getPageAuthorsFunction · 0.90
FeedExplanationModalFunction · 0.90
getReasonFunction · 0.85
getExplainSignalsFunction · 0.85
getExplanationMatchesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected