Skip to content

Commit

Permalink
[InstagramBridge] Use lowercase comparison when looking up user pk
Browse files Browse the repository at this point in the history
  • Loading branch information
teromene committed Feb 26, 2020
1 parent 0705a2e commit 7b63da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridges/InstagramBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function getInstagramUserId($username) {
$data = getContents(self::URI . 'web/search/topsearch/?query=' . $username);

foreach(json_decode($data)->users as $user) {
if($user->user->username === $username) {
if(strtolower($user->user->username) === strtolower($username)) {
$key = $user->user->pk;
}
}
Expand Down

0 comments on commit 7b63da5

Please sign in to comment.