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

Function getDefaultFeed

packages/shared/src/lib/feed.ts:281–289  ·  view source on GitHub ↗
({
  hasUser,
}: GetDefaultFeedProps)

Source from the content-addressed store, hash-verified

279}
280
281export const getDefaultFeed = ({
282 hasUser,
283}: GetDefaultFeedProps): SharedFeedPage => {
284 if (!hasUser) {
285 return SharedFeedPage.Popular;
286 }
287
288 return SharedFeedPage.MyFeed;
289};
290
291export const defaultFeedConditions = [null, 'default', '/', ''];
292

Callers 1

getFeedNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected