1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-30 13:20:12 +02:00

Merge branch 'TwitterWithoutPromotedTweets'

Closes #556
This commit is contained in:
logmanoriginal
2017-08-03 18:26:06 +02:00

View File

@@ -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');