diff --git a/src/routes/Search.tsx b/src/routes/Search.tsx index a95c1cb6..ec6cacf5 100644 --- a/src/routes/Search.tsx +++ b/src/routes/Search.tsx @@ -465,6 +465,16 @@ function ContactButton(props: { onClick: () => void; }) { const i18n = useI18n(); + + const primalUrl = createMemo(() => { + const originalUrl = props.contact.image_url; + if (!originalUrl) return undefined; + + return `https://primal.b-cdn.net/media-cache?s=s&a=1&u=${encodeURIComponent( + originalUrl + )}`; + }); + return (