mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-22 17:45:40 +03:00
[InstagramBridge] Use lowercase comparison when looking up user pk
This commit is contained in:
parent
0705a2e7bb
commit
7b63da522f
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class InstagramBridge extends BridgeAbstract {
|
|||
$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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue