diff options
author | Friendika <info@friendika.com> | 2011-05-29 22:50:36 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-29 22:50:36 -0700 |
commit | 656d861b3ea83ff2acdc5e0c1c7bc3da86dc7c3a (patch) | |
tree | 74141ce982cd9a3a6df6212b5c208f10a839d599 /addon/facebook/facebook.php | |
parent | dd4d5707b0d230622323eb6e81bc6c6fb4c25d9a (diff) | |
download | volse-hubzilla-656d861b3ea83ff2acdc5e0c1c7bc3da86dc7c3a.tar.gz volse-hubzilla-656d861b3ea83ff2acdc5e0c1c7bc3da86dc7c3a.tar.bz2 volse-hubzilla-656d861b3ea83ff2acdc5e0c1c7bc3da86dc7c3a.zip |
on rare occasions posts do not get a parent. The only thing which could cause it is if we can't find our new post. So we'll check for this and try one more time before failing.
Diffstat (limited to 'addon/facebook/facebook.php')
-rw-r--r-- | addon/facebook/facebook.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index b1ba6342a..dc1aa02dd 100644 --- a/addon/facebook/facebook.php +++ b/addon/facebook/facebook.php @@ -725,8 +725,10 @@ function fb_consume_stream($uid,$j,$wall = false) { // don't store post if we don't have a contact - if(! x($datarray,'contact-id')) + if(! x($datarray,'contact-id')) { + logger('no contact: post ignored'); continue; + } $datarray['verb'] = ACTIVITY_POST; if($wall) { @@ -759,8 +761,10 @@ function fb_consume_stream($uid,$j,$wall = false) { intval($top_item), intval($uid) ); - if(count($r)) + if(count($r)) { $orig_post = $r[0]; + logger('fb: new top level item posted'); + } } if(isset($entry->likes) && isset($entry->likes->data)) |