Skip to content

Commit

Permalink
Fixes #94. getMedias not returning owner
Browse files Browse the repository at this point in the history
  • Loading branch information
raiym committed Apr 19, 2017
1 parent eb39c1b commit 5b9f699
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/InstagramScraper/Model/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ public static function fromMediaPage($userArray)
{
$instance = new self();
$instance->id = $userArray['id'];
$instance->profilePicUrl = $userArray['profile_pic_url'];
if (isset($userArray['profile_pic_url'])) {
$instance->profilePicUrl = $userArray['profile_pic_url'];
}
if (isset($userArray['profile_picture'])) {
$instance->profilePicUrl = $userArray['profile_picture'];
}
$instance->username = $userArray['username'];
$instance->fullName = $userArray['full_name'];
if (isset($userArray['is_private'])) {
Expand Down

0 comments on commit 5b9f699

Please sign in to comment.