mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-27 03:50:42 +03:00
commit
c7ec50373a
1 changed files with 8 additions and 0 deletions
|
@ -106,6 +106,14 @@ class TwitterBridge extends BridgeAbstract {
|
|||
$invisible->outertext = '';
|
||||
}
|
||||
|
||||
// Skip protmoted tweets
|
||||
$heading = $tweet->previousSibling();
|
||||
if(!is_null($heading) &&
|
||||
$heading->getAttribute('class') === 'promoted-tweet-heading'
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$item = array();
|
||||
// extract username and sanitize
|
||||
$item['username'] = $tweet->getAttribute('data-screen-name');
|
||||
|
|
Loading…
Reference in a new issue