Skip to content

Commit

Permalink
fix error update
Browse files Browse the repository at this point in the history
  • Loading branch information
waelhanfi04 committed Sep 29, 2023
1 parent 78a8a14 commit 91a8435
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 91a8435

Please sign in to comment.