fix FB privacy

pull/4/merge
friendica 2011-12-28 05:34:48 -08:00
parent 02d0b54f04
commit 3b10d9f8fe
2 changed files with 1 additions and 1 deletions

View File

@ -701,7 +701,7 @@ function facebook_post_hook(&$a,&$b) {
$postvars['name'] = $linkname; $postvars['name'] = $linkname;
} }
if(($b['private']) && (! $b['parent'])) { if(($b['private']) && ($toplevel)) {
$postvars['privacy'] = '{"value": "CUSTOM", "friends": "SOME_FRIENDS"'; $postvars['privacy'] = '{"value": "CUSTOM", "friends": "SOME_FRIENDS"';
if(count($allow_arr)) if(count($allow_arr))
$postvars['privacy'] .= ',"allow": "' . implode(',',$allow_arr) . '"'; $postvars['privacy'] .= ',"allow": "' . implode(',',$allow_arr) . '"';

Binary file not shown.