Skip to content

Commit

Permalink
fix bug [getMedias,getTaggedMedias,getPaginateMedias] methods (#1086)
Browse files Browse the repository at this point in the history
Co-authored-by: Matin Vafadoost <[email protected]>
  • Loading branch information
wpmatin and Matin Vafadoost authored Jul 21, 2022
1 parent 0b0c2d4 commit 3ef6f68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/InstagramScraper/Instagram.php
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ public function getActivity()
public function getMedias($username, $count = 20, $maxId = '')
{

$account = $this->getAccount($username);
$account = $this->getAccountInfo($username);
return $this->getMediasByUserId($account->getId(), $count, $maxId);
}

Expand All @@ -709,7 +709,7 @@ public function getMedias($username, $count = 20, $maxId = '')
public function getTaggedMedias($username, $count = 20, $maxId = '')
{

$account = $this->getAccount($username);
$account = $this->getAccountInfo($username);
return $this->getTaggedMediasByUserId($account->getId(), $count, $maxId);
}

Expand Down Expand Up @@ -1020,7 +1020,7 @@ public function getMediaByCode($mediaCode)
*/
public function getPaginateMedias($username, $maxId = '')
{
$account = $this->getAccount($username);
$account = $this->getAccountInfo($username);

return $this->getPaginateMediasByUserId(
$account->getId(),
Expand Down

0 comments on commit 3ef6f68

Please sign in to comment.