af_readability: ask readability-php library to fix relative URLs
This commit is contained in:
parent
1703850215
commit
7116629487
|
@ -218,7 +218,11 @@ class Af_Readability extends Plugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$r = new Readability(new Configuration());
|
|
||||||
|
$r = new Readability(new Configuration([
|
||||||
|
'fixRelativeURLs' => true,
|
||||||
|
'originalURL' => $url,
|
||||||
|
]));
|
||||||
|
|
||||||
if ($r->parse($tmp)) {
|
if ($r->parse($tmp)) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue