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

Function isSocialTwitterPost

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

Source from the content-addressed store, hash-verified

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

Callers 13

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

Calls

no outgoing calls

Tested by

no test coverage detected