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

Function isShareLikePost

packages/shared/src/graphql/posts.ts:89–91  ·  view source on GitHub ↗
(
  post: Pick<Post, 'type' | 'subType' | 'sharedPost'> | undefined | null,
)

Source from the content-addressed store, hash-verified

87};
88
89export const isShareLikePost = (
90 post: Pick<Post, 'type' | 'subType' | 'sharedPost'> | undefined | null,
91): boolean => post?.type === PostType.Share || isSocialTwitterShareLike(post);
92
93export const isPostOrSharedPostTwitter = (
94 post: Pick<Post, 'type' | 'sharedPost'> | undefined | null,

Callers 3

posts.spec.tsFile · 0.90
usePostContentFunction · 0.90
useLogImpressionFunction · 0.90

Calls 1

isSocialTwitterShareLikeFunction · 0.85

Tested by

no test coverage detected