Skip to content

Commit

Permalink
Merge pull request #85 from pantheon-systems/1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
al-esc authored Aug 30, 2024
2 parents 19cd644 + 0feab4a commit eec8abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/PccSyncManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,12 @@ private function setPostFeatureImage($postId, Article $article)
return;
}
// If the feature image is empty, delete the existing thumbnail.
$featuredImageURL = $article->metadata['FeaturedImage'] . '#image.jpg';
if (!$featuredImageURL) {
if (!$article->metadata['FeaturedImage']) {
delete_post_thumbnail($postId);
return;
}

$featuredImageURL = $article->metadata['FeaturedImage'] . '#image.jpg';
// Check if there was an existing image.
$existingImageId = $this->getImageIdByUrl($featuredImageURL);
if ($existingImageId) {
Expand Down

0 comments on commit eec8abb

Please sign in to comment.