Fix items link to localhost

References #864
This commit is contained in:
logmanoriginal 2018-10-16 19:16:51 +02:00
parent 62d737efe2
commit 717b0bdd9c

View file

@ -605,6 +605,12 @@ EOD;
$this->unescape_fb_emote($content); $this->unescape_fb_emote($content);
// Restore links in the post before further parsing
$post = defaultLinkTo($post, self::URI);
// Restore links in the content before adding to the item
$content = defaultLinkTo($content, self::URI);
// Retrieve date of the post // Retrieve date of the post
$date = $post->find('abbr')[0]; $date = $post->find('abbr')[0];
@ -631,8 +637,6 @@ EOD;
$uri = substr($uri, 0, strpos($uri, '?')); $uri = substr($uri, 0, strpos($uri, '?'));
} }
$content = defaultLinkTo($content, self::URI);
//Build and add final item //Build and add final item
$item['uri'] = htmlspecialchars_decode($uri); $item['uri'] = htmlspecialchars_decode($uri);
$item['content'] = htmlspecialchars_decode($content); $item['content'] = htmlspecialchars_decode($content);