Pular para o conteúdo principal

buildSuggestedPostFeedItem

@raizfc/contracts


@raizfc/contracts / buildSuggestedPostFeedItem

Function: buildSuggestedPostFeedItem()

buildSuggestedPostFeedItem(input): FeedPostDto

Defined in: engagement/feed-suggestion.dto.ts:137

Converts an approved suggestion into the same FeedPostDto shape the home feed already consumes (IS-MVP-11.1) — source: 'platform_suggested' is the one tag EP-MVP-11.1 left for this pack to finally emit. Callers are responsible for only passing status: 'approved' records; this is a pure mapper, not a policy check.

Parameters

input

SuggestedPostFeedInput

Returns

FeedPostDto