]> git.mxchange.org Git - friendica-addons.git/blobdiff - facebook/facebook.php
Merge commit 'upstream/master'
[friendica-addons.git] / facebook / facebook.php
index 35338fa16d7bbff606b3217d1c99f9f0cc0af159..b2f21b93ed291abb84d56dcb696b72fe9df76f76 100755 (executable)
@@ -1176,12 +1176,17 @@ function fb_consume_stream($uid,$j,$wall = false) {
                                $datarray['private'] = 1;
                                $datarray['allow_cid'] = '<' . $uid . '>';
                        }
-                       
+
+                       if(trim($datarray['body']) == '') {
+                               logger('facebook: empty body');
+                               continue;
+                       }
+
                        $top_item = item_store($datarray);
                        $r = q("SELECT * FROM `item` WHERE `id` = %d AND `uid` = %d LIMIT 1",
                                intval($top_item),
                                intval($uid)
-                       );                      
+                       );
                        if(count($r)) {
                                $orig_post = $r[0];
                                logger('fb: new top level item posted');