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

Function isVideoPost

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

Source from the content-addressed store, hash-verified

61): boolean => post.sharedPost?.source?.type === SourceType.Squad;
62
63export const isVideoPost = (post: Post | ReadHistoryPost): boolean =>
64 post?.type === PostType.VideoYouTube ||
65 (post?.type === PostType.Share &&
66 post?.sharedPost?.type === PostType.VideoYouTube);
67
68export const isSocialTwitterPost = (
69 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