diff --git a/bridges/TwitterBridge.php b/bridges/TwitterBridge.php index 32ed9428..b3b7bed4 100644 --- a/bridges/TwitterBridge.php +++ b/bridges/TwitterBridge.php @@ -165,7 +165,7 @@ class TwitterBridge extends BridgeAbstract { // Skip retweets? if($this->getInput('noretweet') - && $tweet->getAttribute('data-screen-name') !== $this->getInput('u')) { + && strcasecmp($tweet->getAttribute('data-screen-name'), $this->getInput('u'))) { continue; } @@ -189,6 +189,9 @@ class TwitterBridge extends BridgeAbstract { $item['fullname'] = htmlspecialchars_decode($tweet->getAttribute('data-name'), ENT_QUOTES); // get author $item['author'] = $item['fullname'] . ' (@' . $item['username'] . ')'; + if(strcasecmp($tweet->getAttribute('data-screen-name'), $this->getInput('u'))) { + $item['author'] .= ' RT: @' . $this->getInput('u'); + } // get avatar link $item['avatar'] = $tweet->find('img', 0)->src; // get TweetID