]> git.mxchange.org Git - friendica-addons.git/commitdiff
fix FB privacy
authorfriendica <info@friendica.com>
Wed, 28 Dec 2011 13:34:48 +0000 (05:34 -0800)
committerfriendica <info@friendica.com>
Wed, 28 Dec 2011 13:34:48 +0000 (05:34 -0800)
facebook/facebook.php
twitter.tgz

index 27d8d0a86fe7c47d27de4308fbcd0cc01a069d9c..69461d63dadccf9fb92405361a9f7caf824c5fdc 100644 (file)
@@ -701,7 +701,7 @@ function facebook_post_hook(&$a,&$b) {
                                                $postvars['name'] = $linkname;
                                }
 
-                               if(($b['private']) && (! $b['parent'])) {
+                               if(($b['private']) && ($toplevel)) {
                                        $postvars['privacy'] = '{"value": "CUSTOM", "friends": "SOME_FRIENDS"';
                                        if(count($allow_arr))
                                                $postvars['privacy'] .= ',"allow": "' . implode(',',$allow_arr) . '"';
index 2063a9dfc0cc29ee1575e68a051d4574bf499bc8..ac3d5f19b32e243a2efdd72308652cc854448add 100644 (file)
Binary files a/twitter.tgz and b/twitter.tgz differ