]> git.mxchange.org Git - friendica-addons.git/commitdiff
facebook comments not working
authorfriendica <info@friendica.com>
Mon, 19 Dec 2011 09:09:35 +0000 (01:09 -0800)
committerfriendica <info@friendica.com>
Mon, 19 Dec 2011 09:09:35 +0000 (01:09 -0800)
facebook.tgz
facebook/facebook.php
statusnet.tgz
twitter.tgz
widgets.tgz

index 062cb5e1158cbe31ff03519681031712d565df9b..6096f6e45532e1ec00bccf6e85931c16fc84ddcc 100644 (file)
Binary files a/facebook.tgz and b/facebook.tgz differ
index 0102675fa71e3c67f902b8bd7b5826d4c2b466f4..f90bbd5ff274890540e06c67eb17ad62d593c942 100644 (file)
@@ -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']);
index 93ae0e5852e8e755c696f8e61e4ac329e6e936ec..b075d10d5b14c7588082273f4fa8396a7cc73062 100644 (file)
Binary files a/statusnet.tgz and b/statusnet.tgz differ
index 6fbea7340f2e6fcbefe2220bba3abf252e6f6011..2063a9dfc0cc29ee1575e68a051d4574bf499bc8 100644 (file)
Binary files a/twitter.tgz and b/twitter.tgz differ
index 4f46fd439c447613e3acd9ae6d3cc448ded137ab..863efd0a8d745876c35bed410986c1dc16cccdaa 100644 (file)
Binary files a/widgets.tgz and b/widgets.tgz differ