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
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 1 additions and 1 deletions

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 = [];