diff options
Diffstat (limited to 'addon/facebook/facebook.php')
-rw-r--r-- | addon/facebook/facebook.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index 2aab3c5ee..ebb0c5344 100644 --- a/addon/facebook/facebook.php +++ b/addon/facebook/facebook.php @@ -778,12 +778,15 @@ function fb_consume_stream($uid,$j,$wall = false) { $cmntdata['contact-id'] = $self[0]['id']; } else { - $r = q("SELECT * FROM `contact` WHERE `notify` = '%s' AND `uid` = %d AND `blocked` = 0 AND `readonly` = 0 LIMIT 1", + $r = q("SELECT * FROM `contact` WHERE `notify` = '%s' AND `uid` = %d LIMIT 1", dbesc($cmnt->from->id), intval($uid) ); - if(count($r)) + if(count($r)) { $cmntdata['contact-id'] = $r[0]['id']; + if($r[0]['blocked'] || $r[0]['readonly']) + continue; + } } if(! x($cmntdata,'contact-id')) $cmntdata['contact-id'] = $orig_post['contact-id']; |