fix(TwitterBridge): remove ampersand from screen name, api dont like it (#3388)

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

View File

@ -231,7 +231,9 @@ EOD
$cache->purgeCache(60 * 60 * 3); // 3h $cache->purgeCache(60 * 60 * 3); // 3h
$api = new TwitterClient($cache); $api = new TwitterClient($cache);
$data = $api->fetchUserTweets($this->getInput('u')); $screenName = $this->getInput('u');
$screenName = ltrim($screenName, '@');
$data = $api->fetchUserTweets($screenName);
break; break;
case 'By keyword or hashtag': case 'By keyword or hashtag':