mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-29 14:48:52 +03:00
[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;
|
||||
|
||||
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)){
|
||||
|
|
Loading…
Reference in a new issue