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

Function isPostUpdated

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

Source from the content-addressed store, hash-verified

103 isSocialTwitterPost(post) || isSocialTwitterPost(post?.sharedPost as Post);
104
105export const isPostUpdated = (
106 post: Pick<Post, 'createdAt' | 'updatedAt'>,
107): boolean => !!post.updatedAt && post.updatedAt !== post.createdAt;
108
109/**
110 * For social:twitter quote posts, resolve to the top tweet (the post itself)

Calls

no outgoing calls

Tested by

no test coverage detected