Skip to content

Commit

Permalink
[DarkReading] Hide dummy articles
Browse files Browse the repository at this point in the history
  • Loading branch information
ORelio committed Mar 25, 2020
1 parent 366d2d6 commit 00dd81a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bridges/DarkReadingBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public function collectData(){

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);
Expand Down

0 comments on commit 00dd81a

Please sign in to comment.