1
0
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:
Mynacol
2025-07-19 23:29:00 +00:00
parent 1d5bcba41f
commit 4c0b97d605

View File

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