coldbydefault-portfolio
    Preparing search index...

    Function moderateFeedback

    • Screens a feedback entry before it is stored. Returns null when either stage is unreachable, which the route treats as "wait for review": failing closed costs nothing here, because nothing is published without the owner's approval anyway.

      Both stages run at once, so the wait is the slower of the two rather than their sum, and the classifier's flagged words are there even when the endpoint is what rejected the entry.

      The name is moderated with the message, since it is published beside it.

      Parameters

      • message: string
      • name: string | null

      Returns Promise<ModerationResult | null>