Skip to content

Commit 3ef6f68

Browse files
wpmatinMatin Vafadoost
and
Matin Vafadoost
authored
fix bug [getMedias,getTaggedMedias,getPaginateMedias] methods (#1086)
Co-authored-by: Matin Vafadoost <wpmatin@gmail.cpom>
1 parent 0b0c2d4 commit 3ef6f68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/InstagramScraper/Instagram.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ public function getActivity()
693693
public function getMedias($username, $count = 20, $maxId = '')
694694
{
695695

696-
$account = $this->getAccount($username);
696+
$account = $this->getAccountInfo($username);
697697
return $this->getMediasByUserId($account->getId(), $count, $maxId);
698698
}
699699

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

712-
$account = $this->getAccount($username);
712+
$account = $this->getAccountInfo($username);
713713
return $this->getTaggedMediasByUserId($account->getId(), $count, $maxId);
714714
}
715715

@@ -1020,7 +1020,7 @@ public function getMediaByCode($mediaCode)
10201020
*/
10211021
public function getPaginateMedias($username, $maxId = '')
10221022
{
1023-
$account = $this->getAccount($username);
1023+
$account = $this->getAccountInfo($username);
10241024

10251025
return $this->getPaginateMediasByUserId(
10261026
$account->getId(),

0 commit comments

Comments
 (0)