Skip to content

Commit fae15d7

Browse files
authored
Update PostDTOFactory.php
Fixed missing media_url in PostType "CAROUSEL_ALBUM" parent data
1 parent b6b11a3 commit fae15d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Factory/Dto/PostDTOFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private static function createFromArray(array $data): PostDTO
5050
return new PostDTO(
5151
$data['id'],
5252
$data['caption'] ?? '',
53-
$data['media_url'],
53+
$data['media_url'] ?? '',
5454
$data['permalink'],
5555
new \DateTimeImmutable($data['timestamp']),
5656
$data['username'],

0 commit comments

Comments
 (0)