fix(TwitterBridge): trim screen name before passing it to twitter client (#3389)

This commit is contained in:
Dag 2023-05-10 21:59:50 +02:00 committed by GitHub
parent 49d105fd70
commit 88f646cf12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -232,8 +232,11 @@ EOD
$api = new TwitterClient($cache);
$screenName = $this->getInput('u');
$screenName = trim($screenName);
$screenName = ltrim($screenName, '@');
$data = $api->fetchUserTweets($screenName);
break;
case 'By keyword or hashtag':