af_redditimgur: absolutize links before processing them

This commit is contained in:
Andrew Dolgov
2022-07-13 07:51:09 +03:00
parent 5c70d26b7e
commit 96f704d157

View File

@@ -397,7 +397,7 @@ class Af_RedditImgur extends Plugin {
$entries = $xpath->query('//a[@href]');
foreach ($entries as $entry) {
$entry_href = $entry->getAttribute("href");
$entry_href = UrlHelper::rewrite_relative($article["link"], $entry->getAttribute("href"), "a");
$matches = [];