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

Function isPostUpdated

packages/shared/src/graphql/posts.ts:98–100  ·  view source on GitHub ↗
(
  post: Pick<Post, 'createdAt' | 'updatedAt'>,
)

Source from the content-addressed store, hash-verified

96 isSocialTwitterPost(post) || isSocialTwitterPost(post?.sharedPost as Post);
97
98export const isPostUpdated = (
99 post: Pick<Post, 'createdAt' | 'updatedAt'>,
100): boolean => !!post.updatedAt && post.updatedAt !== post.createdAt;
101
102/**
103 * For social:twitter quote posts, resolve to the top tweet (the post itself)

Callers 3

CollectionList.tsxFile · 0.90
CollectionGrid.tsxFile · 0.90
CollectionPostContentRawFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected