We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d3ecdc commit 9ab49a7Copy full SHA for 9ab49a7
src/routes/Search.tsx
@@ -465,6 +465,16 @@ function ContactButton(props: {
465
onClick: () => void;
466
}) {
467
const i18n = useI18n();
468
+
469
+ const primalUrl = createMemo(() => {
470
+ const originalUrl = props.contact.image_url;
471
+ if (!originalUrl) return undefined;
472
473
+ return `https://primal.b-cdn.net/media-cache?s=s&a=1&u=${encodeURIComponent(
474
+ originalUrl
475
+ )}`;
476
+ });
477
478
return (
479
<button
480
onClick={() => props.onClick()}
@@ -480,7 +490,7 @@ function ContactButton(props: {
490
>
481
491
<LabelCircle
482
492
name={props.contact.name}
483
- image_url={props.contact.image_url}
493
+ image_url={primalUrl()}
484
494
contact
485
495
label={false}
486
496
/>
0 commit comments