[TwitterBridge] Fix detection of retweets on lists

References #1161
This commit is contained in:
logmanoriginal 2019-06-12 18:25:48 +02:00
parent d005acca83
commit b27487ace0

View file

@ -189,7 +189,7 @@ EOD
// Skip retweets?
if($this->getInput('noretweet')
&& strcasecmp($tweet->getAttribute('data-screen-name'), $this->getInput('u'))) {
&& $tweet->find('div.context span.js-retweet-text a', 0)) {
continue;
}
@ -213,8 +213,8 @@ EOD
$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');
if($rt = $tweet->find('div.context span.js-retweet-text a', 0)) {
$item['author'] .= ' RT: @' . $rt->plaintext;
}
// get avatar link
$item['avatar'] = $tweet->find('img', 0)->src;