From: friendica Date: Mon, 19 Dec 2011 09:09:35 +0000 (-0800) Subject: facebook comments not working X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9a7d8283404fee2dc0dc05a762c601c99d78149c;p=friendica-addons.git facebook comments not working --- 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