0
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-29 06:45:47 +00:00
This commit is contained in:
Matthieu Rakotojaona 2025-08-18 08:20:45 -06:00 committed by GitHub
commit 09bc669144
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,10 @@ class HackerNewsUserThreadsBridge extends BridgeAbstract
$item['author'] = $author;
$item['title'] = $title;
$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;
}