From: Michael Vogel Date: Tue, 11 Feb 2014 22:28:23 +0000 (+0100) Subject: fbsync: Only import comments when the toplevel poster wasn't ignored X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=93d5394ffa2b6b43e5e0d982560ebb9f2772d992;p=friendica-addons.git fbsync: Only import comments when the toplevel poster wasn't ignored --- diff --git a/fbsync/fbsync.php b/fbsync/fbsync.php index 561cabad..e7cc53f0 100644 --- a/fbsync/fbsync.php +++ b/fbsync/fbsync.php @@ -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"];