From 7b63da522fa728811349081a0921f84bb1fa6f19 Mon Sep 17 00:00:00 2001 From: Lyra Date: Wed, 26 Feb 2020 22:35:44 +0100 Subject: [PATCH] [InstagramBridge] Use lowercase comparison when looking up user pk --- bridges/InstagramBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/InstagramBridge.php b/bridges/InstagramBridge.php index 0a6dbaad232..58238e9d48e 100644 --- a/bridges/InstagramBridge.php +++ b/bridges/InstagramBridge.php @@ -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; } }