diff --git a/bridges/FacebookBridge.php b/bridges/FacebookBridge.php index 1b8111ec..d7e8f913 100644 --- a/bridges/FacebookBridge.php +++ b/bridges/FacebookBridge.php @@ -605,6 +605,12 @@ EOD; $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 $date = $post->find('abbr')[0]; @@ -631,8 +637,6 @@ EOD; $uri = substr($uri, 0, strpos($uri, '?')); } - $content = defaultLinkTo($content, self::URI); - //Build and add final item $item['uri'] = htmlspecialchars_decode($uri); $item['content'] = htmlspecialchars_decode($content);