Skip to content

Commit b068d13

Browse files
committed
domain fix for social thumb
1 parent fc9782f commit b068d13

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/shared/components/MetaTags.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ function MetaTags({
2424
feed,
2525
feedTitle,
2626
}) {
27-
const img = `${domain}${image}`;
27+
let img = `${domain}${image}`;
28+
if (image.indexOf('http://') === 0 || image.indexOf('https://') === 0) {
29+
img = `${image}`;
30+
}
2831
const socTitle = socialTitle || title;
2932
const socDesc = socialDescription || description;
3033
return (

0 commit comments

Comments
 (0)