Webhooks reject embed-only payloads from Discord and Slack compatible apps with error 400

(#297) Bug Awaiting confirmation api embeds

Thread

Comment by @vexcited
RexSystem 1 vote originally by @vexcited on GitHub
Happens the same here with Forgejo. When looking at the details, Forgejo sends a POST request to the Webhook URL with the following body...
Content-Type: application/json
X-Forgejo-Delivery: dafe99be-4bf4-4621-8485-3f2dd78fa6f1
X-Forgejo-Event: action_run_success
X-Forgejo-Event-Type: action_run_success

{
  "username": "Forgejo",
  "embeds": [
    {
      "title": "feat: add twemoji country flags Action Succeeded in hq/web main",
      "description": "",
      "url": "https://code.throwdown.live/hq/web/actions/runs/60",
      "color": 1754624,
      "footer": {},
      "author": {
        "name": "Vexcited",
        "url": "https://code.throwdown.live/Vexcited",
        "icon_url": "https://code.throwdown.live/avatars/cf9eb2f14e5408329576912748877a077e8c3445b7de697f976cb4ac632ad065"
      }
    }
  ]
}
...and Fluxer replies with a 400 error,
X-Infrastructure: web-nyc-3-api
X-Request-Id: 12dd61095b5be7505545fa8ac1217cab

{"code":"INVALID_FORM_BODY","message":"Invalid form body.","errors":[{"path":"message_data","message":"Invalid message data.","code":"INVALID_MESSAGE_DATA"}]}
Not sure which part of this controller is messing up everything... https://github.com/fluxerapp/fluxer/blob/77a6897180750801cc020262c94878736ff79799/packages/api/src/webhook/WebhookController.tsx#L353-L387