[HackerNewsUserThreadsBridge] Repair broken bridge (#2344)

This commit is contained in:
dag 2021-12-19 10:18:57 +01:00 committed by GitHub
parent 67e33186ce
commit ec55e99934
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class HackerNewsUserThreadsBridge extends BridgeAbstract {
$item['uri'] = 'https://news.ycombinator.com/item?id=' . $id;
$author = $element->find('span[class*="comhead"]', 0)->find('a[class="hnuser"]', 0)->innertext;
$newstory = $element->find('span[class*="comhead"]', 0)->find('span[class="storyon"]', 0);
$newstory = $element->find('span[class*="comhead"]', 0)->find('span[class="onstory"]', 0);
if (count($newstory->find('a')) > 0) {
$story = $newstory->find('a', 0)->innertext;
}