Skip to content

Commit

Permalink
remove unnecessary string check
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Jul 7, 2023
1 parent 26742a3 commit 98b4d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SocialDataBundle/Manager/SocialPostManager.php
Expand Up @@ -115,7 +115,7 @@ public function persistSocialPostEntity(Concrete $post, FeedInterface $feed, boo

protected function persistMedia(FeedInterface $feed, SocialPostInterface $socialPost, bool $forceProcessing): void
{
if (empty($socialPost->getPosterUrl()) || !is_string($socialPost->getPosterUrl())) {
if (empty($socialPost->getPosterUrl())) {
// @todo: how to handle force processing (e.g. delete current asset?)
$this->logger->debug(sprintf('No poster url given for social post %s', $socialPost->getSocialId()), [$feed]);

Expand Down

0 comments on commit 98b4d9f

Please sign in to comment.