Skip to content

Commit

Permalink
Merge pull request #119 from pdir/fix-instagram-import
Browse files Browse the repository at this point in the history
Fix instagram import if post has no description
  • Loading branch information
seibtph authored Jun 13, 2023
2 parents 8f1d302 + 911be69 commit 7d44a71
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Types of changes
Security in case of vulnerabilities.
)

## [2.12.2](https://github.com/pdir/contao-webtools/tree/2.12.2) - 2023-06-13

- [Fixed] Fix instagram import if post has no description ([#116](https://github.com/pdir/social-feed-bundle/issues/116))

## [2.12.1](https://github.com/pdir/contao-webtools/tree/2.12.1) - 2023-06-09

- [Fixed] Fix error if type and access token is empty
Expand Down
2 changes: 1 addition & 1 deletion src/Dca/tl_social_feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class tl_social_feed
/**
* social-feed-bundle version.
*/
public const VERSION = '2.12.1';
public const VERSION = '2.12.2';

/**
* Template.
Expand Down
2 changes: 1 addition & 1 deletion src/Importer/NewsImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function execute($newsArchiveId, $socialFeedType, $socialFeedAccount): vo
}

// message and teaser
$message = $this->getPostMessage($this->arrNews['caption']);
$message = $this->getPostMessage($this->arrNews['caption']) ?? '';
$more = '';

if (\strlen($message) > 50) {
Expand Down

0 comments on commit 7d44a71

Please sign in to comment.