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

Function isVideoPost

packages/shared/src/graphql/posts.ts:56–59  ·  view source on GitHub ↗
(post: Post | ReadHistoryPost)

Source from the content-addressed store, hash-verified

54): boolean => post.sharedPost?.source?.type === SourceType.Squad;
55
56export const isVideoPost = (post: Post | ReadHistoryPost): boolean =>
57 post?.type === PostType.VideoYouTube ||
58 (post?.type === PostType.Share &&
59 post?.sharedPost?.type === PostType.VideoYouTube);
60
61export const isSocialTwitterPost = (
62 post: Pick<Post, 'type'> | undefined | null,

Callers 14

ShareGrid.tsxFile · 0.90
ShareList.tsxFile · 0.90
PostCardFooterFunction · 0.90
SignalList.tsxFile · 0.90
ArticleList.tsxFile · 0.90
ArticleGrid.tsxFile · 0.90
PostContentRawFunction · 0.90
PostItemCardFunction · 0.90
SquadPostContentRawFunction · 0.90
EngagementRailFunction · 0.90
PostFocusCardFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected