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

Function getDefaultFeed

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

Source from the content-addressed store, hash-verified

233}
234
235export const getDefaultFeed = ({
236 hasUser,
237}: GetDefaultFeedProps): SharedFeedPage => {
238 if (!hasUser) {
239 return SharedFeedPage.Popular;
240 }
241
242 return SharedFeedPage.MyFeed;
243};
244
245export const defaultFeedConditions = [null, 'default', '/', ''];
246

Callers 1

getFeedNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected