[InstagramBridge] Use lowercase comparison when looking up user pk

This commit is contained in:
Lyra 2020-02-26 22:35:44 +01:00
parent 0705a2e7bb
commit 7b63da522f

View file

@ -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;
}
}