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

Function isVideoPost

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

Source from the content-addressed store, hash-verified

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

Callers 15

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

Calls

no outgoing calls

Tested by

no test coverage detected