]> git.mxchange.org Git - friendica-addons.git/commitdiff
fbsync: Only import comments when the toplevel poster wasn't ignored
authorMichael Vogel <icarus@dabo.de>
Tue, 11 Feb 2014 22:28:23 +0000 (23:28 +0100)
committerMichael Vogel <icarus@dabo.de>
Tue, 11 Feb 2014 22:28:23 +0000 (23:28 +0100)
fbsync/fbsync.php

index 561cabadffcd20fc584dad1ff0a90db9a218b705..e7cc53f05b3fc169e3df8b6361b2eb60f1e838d4 100644 (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"];