diff --git a/bridges/FacebookBridge.php b/bridges/FacebookBridge.php index a5b328d..63c9346 100644 --- a/bridges/FacebookBridge.php +++ b/bridges/FacebookBridge.php @@ -23,6 +23,13 @@ class FacebookBridge extends BridgeAbstract { 'No Video' => 'novideo' ), 'defaultValue' => 'all' + ), + 'skip_reviews' => array( + 'name' => 'Skip reviews', + 'type' => 'checkbox', + 'required' => false, + 'defaultValue' => false, + 'title' => 'Feed includes reviews when checked' ) )); @@ -195,6 +202,12 @@ EOD; $posts = array($cell); } + // Optionally skip reviews + if($this->getInput('skip_reviews') + && !is_null($cell->find('#review_composer_container', 0))) { + continue; + } + foreach($posts as $post) { // Check media type switch($this->getInput('media_type')) {