[FacebookBridge] Handle summary posts

Previously summary posts were ignored which resulted in the last
two posts not showing up in the feed (the latest two are shown in
the summary post).

Now summary posts are treated like regular posts, returning them
as part of the regular feed.

References #502, #505
This commit is contained in:
logmanoriginal 2017-04-10 13:04:38 +02:00
parent 2500d0df93
commit e221358ead

View file

@ -168,9 +168,15 @@ EOD;
$this->authorName = $author;
foreach($element->children() as $post){
// Ignore summary posts
if(strpos($post->class, '_3xaf') !== false) continue;
foreach($element->children() as $cell){
// Manage summary posts
if(strpos($cell->class, '_3xaf') !== false){
$posts = $cell->children();
} else {
$posts = array($cell);
}
foreach($posts as $post){
$item = array();
@ -255,6 +261,7 @@ EOD;
}
}
}
}
public function getName(){
if(!empty($this->authorName)){