fix(http): carry the link preview on the envelope, not only as evidence rows

The report draws a WhatsApp-style card from httpResult.preview, which the check
never returned, so the card the whole page is built around was silently absent.
Verified live: www.hoelee.com now renders og image, title and description.
This commit is contained in:
hoelee committed 2026-11-10 13:01:53 +08:00
1 parent bc29f2a963
commit cb635893cc
1 file changed
+6
+6
View File
@@ -565,6 +565,10 @@ export async function checkHttp(input, { lookup } = {}) {
summary: analysis.summary,
evidence: analysis.evidence,
findings: analysis.findings,
// The report draws a WhatsApp-style card straight from this object, so it must travel with
// the envelope and not only as evidence rows.
preview: analysis.preview,
redirects: analysis.redirects,
checkedAt,
fromCache: false
};
@@ -578,6 +582,8 @@ export async function checkHttp(input, { lookup } = {}) {
summary: analysis.summary,
evidence: analysis.evidence,
findings: analysis.findings,
preview: null,
redirects: analysis.redirects,
checkedAt,
fromCache: false
};