Skip to content

Commit 39c8f92

Browse files
authored
Merge pull request #6377 from topcoder-platform/social-share-thumb
Social share thumb
2 parents 25c9c6f + 7b43f2e commit 39c8f92

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.circleci/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ workflows:
370370
filters:
371371
branches:
372372
only:
373-
- footer-update
374373
- reskin
375374
# This is stage env for production QA releases
376375
- "build-prod-staging":

src/shared/components/Contentful/Route.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function ChildRoutesLoader(props) {
4747
<React.Fragment>
4848
<MetaTags
4949
description={fields.description}
50-
image={fields.thumbnail}
50+
image={fields.socialThumbnail}
5151
siteName={fields.socialSiteName}
5252
socialDescription={fields.socialDescription}
5353
socialTitle={fields.socialTitle}

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)