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

Function isBoostedPostCreative

packages/shared/src/hooks/useFeed.ts:152–154  ·  view source on GitHub ↗
(
  ad: Ad,
)

Source from the content-addressed store, hash-verified

150
151// Skadi marks a boost by what it carries: the post or the squad, no creative.
152export const isBoostedPostCreative = (
153 ad: Ad,
154): ad is Ad & { data: { post: Post } } => !!ad.data?.post;
155
156export const isBoostedSquadCreative = (ad: Ad): ad is AdSquadItem['ad'] =>
157 !!ad.data?.source;

Callers 4

FeedWidgetRailFunction · 0.90
FeedWidgetBoostedAdFunction · 0.90
FeedWidgetAdSlotFunction · 0.85
isBoostedPostAdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected