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

Function isSourceAdFree

packages/shared/src/lib/ads.ts:17–19  ·  view source on GitHub ↗
(
  source?: Pick<Source, 'features'> | null,
)

Source from the content-addressed store, hash-verified

15 * rule.
16 */
17export const isSourceAdFree = (
18 source?: Pick<Source, 'features'> | null,
19): boolean => !!(source?.features?.hideAds ?? source?.features?.adFree);
20
21/**
22 * A squad post opened from a feed card has no features until its own post

Callers 7

BasePostModalFunction · 0.90
useIsAdFreePostFunction · 0.90
SquadHomeFunction · 0.90
SquadEnterpriseSettingsFunction · 0.90
useEngagementAdsContextFunction · 0.90
logExtraFunction · 0.90
shouldSkipSourceAdsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected