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

Function shouldSkipSourceAds

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

Source from the content-addressed store, hash-verified

23 * query lands, so the ads that request an ad wait for it.
24 */
25export const shouldSkipSourceAds = (
26 source?: Pick<Source, 'features' | 'type'> | null,
27): boolean =>
28 isSourceAdFree(source) ||
29 (source?.type === SourceType.Squad && !source.features);
30
31export enum AdActions {
32 Click = 'click',

Callers 8

CommentAdFunction · 0.90
InlineAdFunction · 0.90
SidebarAdFunction · 0.90
AdAsCommentFunction · 0.90
PostSidebarAdWidgetFunction · 0.90
PostExcoPlayerWidgetFunction · 0.90
ads.spec.tsFile · 0.90
useSimilarSquadsFunction · 0.90

Calls 1

isSourceAdFreeFunction · 0.85

Tested by

no test coverage detected