mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 15:47:32 +02:00
[ZeitBridge] Add advertorial marker to article
So users are aware that it's a paid article. Some might still find them interesting, so we cannot just filter them away.
This commit is contained in:
@@ -119,6 +119,11 @@ class ZeitBridge extends FeedExpander
|
||||
}
|
||||
|
||||
$item['content'] = '';
|
||||
// advertorial marker
|
||||
$advert = $article->find('.advertorial-marker', 0);
|
||||
if ($advert) {
|
||||
$item['content'] .= $advert;
|
||||
}
|
||||
|
||||
// summary
|
||||
$summary = $article->find('.summary');
|
||||
|
Reference in New Issue
Block a user