[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:
parent
9820ad5c0f
commit
cb488d9d8c
1 changed files with 1 additions and 5 deletions
|
@ -552,11 +552,7 @@ EOD;
|
||||||
|
|
||||||
if(count($post->find('abbr')) > 0) {
|
if(count($post->find('abbr')) > 0) {
|
||||||
|
|
||||||
//Retrieve post contents
|
$content = $post->find('.userContentWrapper', 0);
|
||||||
$content = preg_replace(
|
|
||||||
'/(?i)><div class=\"clearfix([^>]+)>(.+?)div\ class=\"userContent\"/i',
|
|
||||||
'',
|
|
||||||
$post);
|
|
||||||
|
|
||||||
$content = preg_replace(
|
$content = preg_replace(
|
||||||
'/(?i)><div class=\"_59tj([^>]+)>(.+?)<\/div><\/div><a/i',
|
'/(?i)><div class=\"_59tj([^>]+)>(.+?)<\/div><\/div><a/i',
|
||||||
|
|
Loading…
Reference in a new issue