a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

don't set the proxied preview image to a fact

+1 -12
+1 -1
components/Blocks/ExternalLinkBlock.tsx
··· 51 51 <div 52 52 className={`linkBlockPreview w-[120px] m-2 -mb-2 bg-cover shrink-0 rounded-t-md border border-border rotate-[4deg] origin-center`} 53 53 style={{ 54 - backgroundImage: `url(${previewImage?.data.src})`, 54 + backgroundImage: `url(${`/api/link-preview-proxy?url=${url?.data.value}`})`, 55 55 backgroundPosition: "center", 56 56 }} 57 57 />
-11
src/utils/addLinkBlock.ts
··· 21 21 value: url, 22 22 }, 23 23 }); 24 - await rep?.mutate.assertFact({ 25 - entity: entityID, 26 - attribute: "link/preview", 27 - data: { 28 - fallback: "", 29 - type: "image", 30 - src: `/api/link-preview-proxy?url=${url}`, 31 - width: 1920, 32 - height: 1080, 33 - }, 34 - }); 35 24 let data = await addLinkCard({ link: url }); 36 25 if (data.success) { 37 26 await rep?.mutate.assertFact({