af_readability: ask readability-php library to fix relative URLs

This commit is contained in:
Andrew Dolgov 2022-03-22 11:26:22 +03:00
parent 1703850215
commit 7116629487
1 changed files with 5 additions and 1 deletions

View File

@ -218,7 +218,11 @@ class Af_Readability extends Plugin {
}
try {
$r = new Readability(new Configuration());
$r = new Readability(new Configuration([
'fixRelativeURLs' => true,
'originalURL' => $url,
]));
if ($r->parse($tmp)) {