diff --git a/fbpost/fbpost.php b/fbpost/fbpost.php index f0b763cd..7c10d7c3 100644 --- a/fbpost/fbpost.php +++ b/fbpost/fbpost.php @@ -1095,7 +1095,7 @@ function fbpost_fetchwall($a, $uid) { } if(trim($_REQUEST["body"].$content.$pagedata["text"]) == '') { - logger('facebook: empty body 2 '.$item->id.' '.print_r($item, true)); + logger('facebook: empty body 1 '.$item->id.' '.print_r($item, true)); continue; } @@ -1115,7 +1115,7 @@ function fbpost_fetchwall($a, $uid) { } if(trim($_REQUEST["body"].$content.$pagedata["text"]) == '') { - logger('facebook: empty body '.$item->id.' '.print_r($item, true)); + logger('facebook: empty body 2 '.$item->id.' '.print_r($item, true)); continue; } @@ -1151,6 +1151,11 @@ function fbpost_fetchwall($a, $uid) { .' '.substr($item->place->location->longitude, 0, 8); } + if(trim($_REQUEST["body"]) == '') { + logger('facebook: empty body 3 '.$item->id.' '.print_r($item, true)); + continue; + } + //print_r($_REQUEST); logger('facebook: posting for user '.$uid); item_post($a); diff --git a/fbsync/fbsync.php b/fbsync/fbsync.php index 40a7ef46..39931d5b 100644 --- a/fbsync/fbsync.php +++ b/fbsync/fbsync.php @@ -1007,7 +1007,7 @@ function fbsync_fetchfeed($a, $uid) { require_once('include/items.php'); - //if ($last_updated == "") + if ($last_updated == "") $last_updated = 0; logger("fbsync_fetchfeed: fetching content for user ".$self_id);