mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-01 22:30:14 +02:00
[InstagramBridge] Use lowercase comparison when looking up user pk
This commit is contained in:
@@ -65,7 +65,7 @@ class InstagramBridge extends BridgeAbstract {
|
|||||||
$data = getContents(self::URI . 'web/search/topsearch/?query=' . $username);
|
$data = getContents(self::URI . 'web/search/topsearch/?query=' . $username);
|
||||||
|
|
||||||
foreach(json_decode($data)->users as $user) {
|
foreach(json_decode($data)->users as $user) {
|
||||||
if($user->user->username === $username) {
|
if(strtolower($user->user->username) === strtolower($username)) {
|
||||||
$key = $user->user->pk;
|
$key = $user->user->pk;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user