mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-12 18:08:47 +00:00
Merge df52fbc091
into 00a24e2f69
This commit is contained in:
commit
aa57b19aad
@ -40,7 +40,10 @@ class HackerNewsUserThreadsBridge extends BridgeAbstract
|
|||||||
$item['author'] = $author;
|
$item['author'] = $author;
|
||||||
$item['title'] = $title;
|
$item['title'] = $title;
|
||||||
$item['timestamp'] = $element->find('span[class*="age"]', 0)->find('a', 0)->innertext;
|
$item['timestamp'] = $element->find('span[class*="age"]', 0)->find('a', 0)->innertext;
|
||||||
$item['content'] = $element->find('span[class*="commtext"]', 0)->innertext;
|
$contentDiv = $element->find('div[class*="commtext"]', 0);
|
||||||
|
if (!empty($contentDiv)) {
|
||||||
|
$item['content'] = $contentDiv->innertext;
|
||||||
|
}
|
||||||
|
|
||||||
$this->items[] = $item;
|
$this->items[] = $item;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user