Facebook: Don't import empty messages
This commit is contained in:
parent
2638761762
commit
f1d01a4e50
1 changed files with 7 additions and 2 deletions
|
@ -1017,6 +1017,11 @@ function fb_consume_stream($uid,$j,$wall = false) {
|
||||||
$datarray['allow_cid'] = '<' . $uid . '>';
|
$datarray['allow_cid'] = '<' . $uid . '>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(trim($datarray['body']) == '') {
|
||||||
|
logger('facebook: empty body');
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$top_item = item_store($datarray);
|
$top_item = item_store($datarray);
|
||||||
$r = q("SELECT * FROM `item` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
$r = q("SELECT * FROM `item` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
||||||
intval($top_item),
|
intval($top_item),
|
||||||
|
|
Loading…
Reference in a new issue