[TwitterBridge] Fix noretweet for users (#1608)
This also removes spurious retweets.
This commit is contained in:
parent
d5a75a2545
commit
78facbcb83
1 changed files with 8 additions and 3 deletions
|
@ -212,9 +212,9 @@ EOD
|
||||||
|
|
||||||
foreach($data->globalObjects->tweets as $tweet) {
|
foreach($data->globalObjects->tweets as $tweet) {
|
||||||
|
|
||||||
// Skip retweets?
|
/* Debug::log('>>> ' . json_encode($tweet)); */
|
||||||
if($this->getInput('noretweet')
|
// Skip spurious retweets
|
||||||
&& isset($tweet->retweeted_status_id_str)) {
|
if (isset($tweet->retweeted_status_id_str) && substr($tweet->full_text, 0, 4) === 'RT @') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -314,6 +314,11 @@ EOD;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'By username':
|
||||||
|
if ($this->getInput('noretweet') && $item['username'] != $this->getInput('u')) {
|
||||||
|
continue 2; // switch + for-loop!
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue