[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:
parent
2500d0df93
commit
e221358ead
1 changed files with 78 additions and 71 deletions
|
@ -168,9 +168,15 @@ EOD;
|
||||||
|
|
||||||
$this->authorName = $author;
|
$this->authorName = $author;
|
||||||
|
|
||||||
foreach($element->children() as $post){
|
foreach($element->children() as $cell){
|
||||||
// Ignore summary posts
|
// Manage summary posts
|
||||||
if(strpos($post->class, '_3xaf') !== false) continue;
|
if(strpos($cell->class, '_3xaf') !== false){
|
||||||
|
$posts = $cell->children();
|
||||||
|
} else {
|
||||||
|
$posts = array($cell);
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach($posts as $post){
|
||||||
|
|
||||||
$item = array();
|
$item = array();
|
||||||
|
|
||||||
|
@ -255,6 +261,7 @@ EOD;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function getName(){
|
public function getName(){
|
||||||
if(!empty($this->authorName)){
|
if(!empty($this->authorName)){
|
||||||
|
|
Loading…
Reference in a new issue