[DarkReading] Hide dummy articles

This commit is contained in:
ORelio 2020-03-25 20:40:17 +01:00
parent 366d2d66b3
commit 00dd81a8aa

View file

@ -53,6 +53,8 @@ class DarkReadingBridge extends FeedExpander {
protected function parseItem($newsItem){
$item = parent::parseItem($newsItem);
if (empty($item['content']))
return null; //ignore dummy articles
$article = getSimpleHTMLDOMCached($item['uri'])
or returnServerError('Could not request Dark Reading: ' . $item['uri']);
$item['content'] = $this->extractArticleContent($article);