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

Function isPostOrSharedPostTwitter

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

Source from the content-addressed store, hash-verified

98): boolean => post?.type === PostType.Share || isSocialTwitterShareLike(post);
99
100export const isPostOrSharedPostTwitter = (
101 post: Pick<Post, 'type' | 'sharedPost'> | undefined | null,
102): boolean =>
103 isSocialTwitterPost(post) || isSocialTwitterPost(post?.sharedPost as Post);
104
105export const isPostUpdated = (
106 post: Pick<Post, 'createdAt' | 'updatedAt'>,

Callers 3

getReadPostButtonIconFunction · 0.90
PostHeaderActionsFunction · 0.90
getReadPostButtonTextFunction · 0.85

Calls 1

isSocialTwitterPostFunction · 0.85

Tested by

no test coverage detected