[FacebookBridge] Fix 'SpSonSsoSredS' text in title

The function 'defaultLinkTo' applied to the source HTML does break
regex matches later in the bridge. We need to apply the function
right before adding the contents to the item for the bridge to work
properly.

References #856
This commit is contained in:
logmanoriginal 2018-10-15 19:53:41 +02:00
parent f48eac854f
commit 7561c0685d
1 changed files with 2 additions and 2 deletions

View File

@ -506,8 +506,6 @@ EOD;
returnServerError('You must be logged in to view this page. This is not supported by RSS-Bridge.');
}
$html = defaultLinkTo($html, self::URI);
$element = $html
->find('#pagelet_timeline_main_column')[0]
->children(0)
@ -633,6 +631,8 @@ 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);