aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-12 13:58:17 -0800
committerfriendica <info@friendica.com>2012-01-12 13:58:17 -0800
commit87c4d1c3cd684a93d5d634ba41a04bfdd51f6fc9 (patch)
treed941ab8e6ddd0e1b9682722f99844b7877971419 /mod
parentaa1c28cf399f42b8b84f5a74bd9ab1a3ee34844c (diff)
downloadvolse-hubzilla-87c4d1c3cd684a93d5d634ba41a04bfdd51f6fc9.tar.gz
volse-hubzilla-87c4d1c3cd684a93d5d634ba41a04bfdd51f6fc9.tar.bz2
volse-hubzilla-87c4d1c3cd684a93d5d634ba41a04bfdd51f6fc9.zip
bug #251 - privacy settings not working via API
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/item.php b/mod/item.php
index 93becdee4..5fb0ef437 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -37,8 +37,8 @@ function item_post(&$a) {
}
call_hooks('post_local_start', $_POST);
-
- logger('postvars' . print_r($_POST,true));
+// logger('postinput ' . file_get_contents('php://input'));
+ logger('postvars' . print_r($_POST,true), LOGGER_DATA);
$api_source = ((x($_POST,'api_source') && $_POST['api_source']) ? true : false);
$return_path = ((x($_POST,'return')) ? $_POST['return'] : '');
@@ -211,10 +211,10 @@ function item_post(&$a) {
}
if(($api_source)
- && (! array_key_exists('allow_cid',$_REQUEST))
- && (! array_key_exists('allow_gid',$_REQUEST))
- && (! array_key_exists('deny_cid',$_REQUEST))
- && (! array_key_exists('deny_gid',$_REQUEST))) {
+ && (! array_key_exists('contact_allow',$_REQUEST))
+ && (! array_key_exists('group_allow',$_REQUEST))
+ && (! array_key_exists('contact_deny',$_REQUEST))
+ && (! array_key_exists('group_deny',$_REQUEST))) {
$str_group_allow = $user['allow_gid'];
$str_contact_allow = $user['allow_cid'];
$str_group_deny = $user['deny_gid'];