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

Function isPostOrSharedPostTwitter

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

Source from the content-addressed store, hash-verified

91): boolean => post?.type === PostType.Share || isSocialTwitterShareLike(post);
92
93export const isPostOrSharedPostTwitter = (
94 post: Pick<Post, 'type' | 'sharedPost'> | undefined | null,
95): boolean =>
96 isSocialTwitterPost(post) || isSocialTwitterPost(post?.sharedPost as Post);
97
98export const isPostUpdated = (
99 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