diff --git a/src/schemas/card.ts b/src/schemas/card.ts index f28b5eee64..dc4ba2e6b2 100644 --- a/src/schemas/card.ts +++ b/src/schemas/card.ts @@ -76,7 +76,11 @@ const cardSchema = z.object({ } }); - card.html = html.outerHTML; + card.html = html.innerHTML; + + if (!card.html) { + card.type = 'link'; + } return card; });