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

Function normalizeLegacyFeedEdge

packages/shared/src/graphql/feed.ts:154–163  ·  view source on GitHub ↗
(
  edge: Connection<Post>['edges'][number],
)

Source from the content-addressed store, hash-verified

152};
153
154const normalizeLegacyFeedEdge = (
155 edge: Connection<Post>['edges'][number],
156): Connection<FeedApiItem>['edges'][number] => ({
157 ...edge,
158 node: {
159 itemType: 'post',
160 feedMeta: edge.node.feedMeta ?? null,
161 post: edge.node,
162 },
163});
164
165const normalizeFeedV2Edge = (
166 edge: Connection<FeedV2Item>['edges'][number],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected