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:
1 parent
bc29f2a963
commit
cb635893cc
1 file changed
+6
@@ -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
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user