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

Function isSocialTwitterPost

packages/shared/src/graphql/posts.ts:61–63  ·  view source on GitHub ↗
(
  post: Pick<Post, 'type'> | undefined | null,
)

Source from the content-addressed store, hash-verified

59 post?.sharedPost?.type === PostType.VideoYouTube);
60
61export const isSocialTwitterPost = (
62 post: Pick<Post, 'type'> | undefined | null,
63): boolean => post?.type === PostType.SocialTwitter;
64
65export const isSocialTwitterShareLike = (
66 post: Pick<Post, 'type' | 'subType' | 'sharedPost'> | undefined | null,

Callers 12

getPostTypeForCardFunction · 0.90
ShareGrid.tsxFile · 0.90
ShareList.tsxFile · 0.90
CommonSharePostContentFunction · 0.90
SharePostContentFunction · 0.90
WriteLinkPreviewFunction · 0.90
isSocialTwitterShareLikeFunction · 0.85
getSocialTwitterPostTypeFunction · 0.85
getPostReadTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected