fbsync: Only import comments when the toplevel poster wasn't ignored

pull/183/head
Michael Vogel 2014-02-11 23:28:23 +01:00
parent 234b91a37b
commit 93d5394ffa
1 changed files with 5 additions and 0 deletions

View File

@ -424,6 +424,11 @@ function fbsync_createcomment($a, $uid, $self_id, $self, $user, $contacts, $appl
$contact_id = fbsync_fetch_contact($uid, $contacts[$comment->fromid], array(), false);
if ($contact_id == -1) {
logger('fbsync_createcomment: Contact was blocked. Comment not imported '.print_r($comment, true), LOGGER_DEBUG);
return;
}
if ($contact_id <= 0)
$contact_id = $self[0]["id"];