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

Function isExternalPost

packages/shared/src/components/post/common/postMedia.ts:4–7  ·  view source on GitHub ↗
(post: Pick<Post, 'type'>)

Source from the content-addressed store, hash-verified

2import { PostType } from '../../../graphql/posts';
3
4export const isExternalPost = (post: Pick<Post, 'type'>): boolean =>
5 post.type === PostType.Article ||
6 post.type === PostType.VideoYouTube ||
7 post.type === PostType.SocialTwitter;

Callers 3

CommonSharePostContentFunction · 0.90
PostHybridColumnFunction · 0.90
SharedPostLinkFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected