[GithubTrendingBridge] Fix items (#3381)

This commit is contained in:
Joseph 2023-05-10 20:14:21 +00:00 committed by GitHub
parent 88f646cf12
commit 8fd677f4ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -603,10 +603,10 @@ class GithubTrendingBridge extends BridgeAbstract
$item = [];
// URI
$item['uri'] = self::URI_ITEM . $element->find('h1 a', 0)->href;
$item['uri'] = self::URI_ITEM . $element->find('h2 a', 0)->href;
// Title
$item['title'] = str_replace(' ', '', trim(strip_tags($element->find('h1 a', 0)->plaintext)));
$item['title'] = str_replace(' ', '', trim(strip_tags($element->find('h2 a', 0)->plaintext)));
// Description
$description = $element->find('p', 0);