diff --git a/facebook.tgz b/facebook.tgz index 062cb5e1..6096f6e4 100644 Binary files a/facebook.tgz and b/facebook.tgz differ diff --git a/facebook/facebook.php b/facebook/facebook.php index 0102675f..f90bbd5f 100644 --- a/facebook/facebook.php +++ b/facebook/facebook.php @@ -511,23 +511,24 @@ function facebook_post_hook(&$a,&$b) { $toplevel = (($b['id'] == $b['parent']) ? true : false); - if(strstr($b['postopts'],'facebook')) { - $linking = ((get_pconfig($b['uid'],'facebook','no_linking')) ? 0 : 1); + $linking = ((get_pconfig($b['uid'],'facebook','no_linking')) ? 0 : 1); - if((! $toplevel) && ($linking)) { - $r = q("SELECT * FROM `item` WHERE `id` = %d AND `uid` = %d LIMIT 1", - intval($b['parent']), - intval($b['uid']) - ); - if(count($r) && substr($r[0]['uri'],0,4) === 'fb::') - $reply = substr($r[0]['uri'],4); - elseif(count($r) && substr($r[0]['extid'],0,4) === 'fb::') - $reply = substr($r[0]['extid'],4); - else - return; - logger('facebook reply id=' . $reply); - } + if((! $toplevel) && ($linking)) { + $r = q("SELECT * FROM `item` WHERE `id` = %d AND `uid` = %d LIMIT 1", + intval($b['parent']), + intval($b['uid']) + ); + if(count($r) && substr($r[0]['uri'],0,4) === 'fb::') + $reply = substr($r[0]['uri'],4); + elseif(count($r) && substr($r[0]['extid'],0,4) === 'fb::') + $reply = substr($r[0]['extid'],4); + else + return; + logger('facebook reply id=' . $reply); + } + + if(strstr($b['postopts'],'facebook') || ($reply)) { if($b['private'] && $reply === false) { $allow_people = expand_acl($b['allow_cid']); diff --git a/statusnet.tgz b/statusnet.tgz index 93ae0e58..b075d10d 100644 Binary files a/statusnet.tgz and b/statusnet.tgz differ diff --git a/twitter.tgz b/twitter.tgz index 6fbea734..2063a9df 100644 Binary files a/twitter.tgz and b/twitter.tgz differ diff --git a/widgets.tgz b/widgets.tgz index 4f46fd43..863efd0a 100644 Binary files a/widgets.tgz and b/widgets.tgz differ