Skip to content

Commit

Permalink
Merge pull request #43 from gtapps/master
Browse files Browse the repository at this point in the history
Thanks @gtapps, I will add tests later
  • Loading branch information
pgrimaud authored Jun 19, 2019
2 parents 49bcd32 + 46b2f05 commit b8777c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Instagram/Hydrator/HtmlHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public function getHydratedData()

$media->setThumbnails($node->thumbnail_resources);

$media->setLocation($node->location);
if(isset($node->location)){
$media->setLocation($node->location);
}

$media->setVideo((bool)$node->is_video);

Expand Down
4 changes: 3 additions & 1 deletion src/Instagram/Hydrator/JsonHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public function getHydratedData()

$media->setThumbnails($node->thumbnail_resources);

$media->setLocation($node->location);
if(isset($node->location)){
$media->setLocation($node->location);
}

$media->setVideo((bool)$node->is_video);

Expand Down

0 comments on commit b8777c8

Please sign in to comment.