a tool for shared writing and social publishing

remove extra uri encoding

+1 -1
+1 -1
src/utils/getMicroLinkOgImage.ts
··· 5 5 const headersList = await headers(); 6 6 const hostname = headersList.get("x-forwarded-host"); 7 7 let protocol = headersList.get("x-forwarded-proto"); 8 - let full_path = encodeURIComponent(`${protocol}://${hostname}${path}`); 8 + let full_path = `${protocol}://${hostname}${path}`; 9 9 let response = await fetch( 10 10 `https://pro.microlink.io/?url=${full_path}&screenshot=true&viewport.width=1400&viewport.height=733&meta=false&embed=screenshot.url&force=true`, 11 11 {