diff --git a/src/app/campaigns/campaign-details/components/campaign-details-container/campaign-details-container.component.ts b/src/app/campaigns/campaign-details/components/campaign-details-container/campaign-details-container.component.ts index 10397d011..ff29b288f 100755 --- a/src/app/campaigns/campaign-details/components/campaign-details-container/campaign-details-container.component.ts +++ b/src/app/campaigns/campaign-details/components/campaign-details-container/campaign-details-container.component.ts @@ -292,23 +292,6 @@ export class CampaignDetailsContainerComponent implements OnInit { this.updateMetaTags(campaign); }); } - updateMetaTags(campaign: Campaign) { - if (campaign) { - this.ogImageUrl = campaign.coverSrcMobile.includes('ipfs') - ? ipfsURL + campaign.coverSrcMobile.substring(27, campaign.coverSrcMobile.length) - : campaign.coverSrcMobile; - - this.meta.updateTag({ property: 'og:title', content: campaign.title }); - this.meta.updateTag({ property: 'og:description', content: campaign.description }); - this.meta.updateTag({ property: 'og:image', content: this.ogImageUrl }); - - this.meta.updateTag({ property: 'og:image:width', content: '1200' }); - this.meta.updateTag({ property: 'og:image:height', content: '630' }); - - this.meta.updateTag({ name: 'twitter:card', content: 'summary_large_image' }); - this.meta.updateTag({ name: 'twitter:image', content: this.ogImageUrl }); - } - } imageImported(image: any) { this.campaignsStoreService.updateOneById({ cover: image });