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

Function isVideoPost

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

Source from the content-addressed store, hash-verified

60): boolean => post.sharedPost?.source?.type === SourceType.Squad;
61
62export const isVideoPost = (post: Post | ReadHistoryPost): boolean =>
63 post?.type === PostType.VideoYouTube ||
64 (post?.type === PostType.Share &&
65 post?.sharedPost?.type === PostType.VideoYouTube);
66
67export const isSocialTwitterPost = (
68 post: Pick<Post, 'type'> | undefined | null,

Callers 15

FocusColumnFunction · 0.90
BookmarkRowFunction · 0.90
ShareGrid.tsxFile · 0.90
ShareList.tsxFile · 0.90
CardCoverCopySlackFunction · 0.90
PostCardFooterFunction · 0.90
ArticleList.tsxFile · 0.90
ArticleGrid.tsxFile · 0.90
PostContentRawFunction · 0.90
PostItemCardFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected