Skip to content

Commit

Permalink
Merge pull request #488 from Aliaxander/patch-1
Browse files Browse the repository at this point in the history
Fix count comments
  • Loading branch information
raiym authored May 18, 2019
2 parents 149dd6d + ff1f9b4 commit adc7291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InstagramScraper/Model/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ protected function initPropertiesCustom($value, $prop, $arr)
case 'link':
$this->link = $value;
break;
case 'comments':
case 'edge_media_to_comment':
$this->commentsCount = $arr[$prop]['count'];
break;
case 'likes':
Expand Down

0 comments on commit adc7291

Please sign in to comment.