Skip to content

Commit

Permalink
convert relative image links to absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
Glandos committed Mar 27, 2022
1 parent 639670f commit 61b37ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bridges/PhoronixBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ protected function parseItem($newsItem){
$item = parent::parseItem($newsItem);
// $articlePage gets the entire page's contents
$articlePage = getSimpleHTMLDOM($newsItem->link);
$articlePage = defaultLinkTo($articlePage, $this->getURI());
// Extract final link. From Facebook's like plugin.
parse_str(parse_url($articlePage->find('iframe[src^=//www.facebook.com/plugins]', 0), PHP_URL_QUERY), $facebookQuery);
if (array_key_exists('href', $facebookQuery)) {
Expand Down

0 comments on commit 61b37ca

Please sign in to comment.