[FacebookBridge] Fix broken feeds

This commit collects the original contents from a different
tag to prevent this issue. The root cause is unknown but closely
related to the regex.

References #877
This commit is contained in:
logmanoriginal 2018-10-20 15:38:44 +02:00
parent 9820ad5c0f
commit cb488d9d8c

View file

@ -552,11 +552,7 @@ EOD;
if(count($post->find('abbr')) > 0) {
//Retrieve post contents
$content = preg_replace(
'/(?i)><div class=\"clearfix([^>]+)>(.+?)div\ class=\"userContent\"/i',
'',
$post);
$content = $post->find('.userContentWrapper', 0);
$content = preg_replace(
'/(?i)><div class=\"_59tj([^>]+)>(.+?)<\/div><\/div><a/i',