forked from blallo/rss-bridge
[TwitterBridge] ignore promoted tweets
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
a4b9611e66
commit
485b465a24
1 changed files with 8 additions and 0 deletions
|
@ -106,6 +106,14 @@ class TwitterBridge extends BridgeAbstract {
|
||||||
$invisible->outertext = '';
|
$invisible->outertext = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Skip protmoted tweets
|
||||||
|
$heading=$tweet->previousSibling();
|
||||||
|
if(!is_null($heading) &&
|
||||||
|
$heading->getAttribute('class')==='promoted-tweet-heading'
|
||||||
|
){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$item = array();
|
$item = array();
|
||||||
// extract username and sanitize
|
// extract username and sanitize
|
||||||
$item['username'] = $tweet->getAttribute('data-screen-name');
|
$item['username'] = $tweet->getAttribute('data-screen-name');
|
||||||
|
|
Loading…
Reference in a new issue