From 6b870f0c3e1d13dc4b69fa0d85719b035b22254f Mon Sep 17 00:00:00 2001 From: Derrick Lee Date: Sun, 10 Jan 2021 00:19:38 -0800 Subject: [PATCH] [TwitterBridge] Fix username matching to be case insensitive with noretweet option (#1924) --- bridges/TwitterBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/TwitterBridge.php b/bridges/TwitterBridge.php index 0bc2f67d..8f546c6f 100644 --- a/bridges/TwitterBridge.php +++ b/bridges/TwitterBridge.php @@ -266,7 +266,7 @@ EOD $item['username'] = $user_info->screen_name; $item['fullname'] = $user_info->name; $item['author'] = $item['fullname'] . ' (@' . $item['username'] . ')'; - if (null !== $this->getInput('u') && $item['username'] != $this->getInput('u')) { + if (null !== $this->getInput('u') && strtolower($item['username']) != strtolower($this->getInput('u'))) { $item['author'] .= ' RT: @' . $this->getInput('u'); } $item['avatar'] = $user_info->profile_image_url_https; @@ -388,7 +388,7 @@ EOD; } break; case 'By username': - if ($this->getInput('noretweet') && $item['username'] != $this->getInput('u')) { + if ($this->getInput('noretweet') && strtolower($item['username']) != strtolower($this->getInput('u'))) { continue 2; // switch + for-loop! } break;