diff options
author | friendica <info@friendica.com> | 2013-07-31 18:57:14 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-31 18:57:14 -0700 |
commit | 0d22e1eefbb09b3b4e2c16845131a9db89d52a6e (patch) | |
tree | 4c2e04a598eae264a490f1b9c8eca55e4702cd2f /mod/item.php | |
parent | c00c550c58f0125785b194c9413a98e114a7ab98 (diff) | |
download | volse-hubzilla-0d22e1eefbb09b3b4e2c16845131a9db89d52a6e.tar.gz volse-hubzilla-0d22e1eefbb09b3b4e2c16845131a9db89d52a6e.tar.bz2 volse-hubzilla-0d22e1eefbb09b3b4e2c16845131a9db89d52a6e.zip |
fix some privacy leakage in logs
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/mod/item.php b/mod/item.php index 0509d8fab..990acd2f0 100644 --- a/mod/item.php +++ b/mod/item.php @@ -44,7 +44,7 @@ function item_post(&$a) { call_hooks('post_local_start', $_REQUEST); - logger('postvars ' . print_r($_REQUEST,true), LOGGER_DATA); +// logger('postvars ' . print_r($_REQUEST,true), LOGGER_DATA); $api_source = ((x($_REQUEST,'api_source') && $_REQUEST['api_source']) ? true : false); @@ -130,14 +130,15 @@ function item_post(&$a) { //if(($parid) && ($parid != $parent)) $thr_parent = $parent_mid; - if($parent_item['contact-id'] && $uid) { - $r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1", - intval($parent_item['contact-id']), - intval($uid) - ); - if(count($r)) - $parent_contact = $r[0]; - } +// if($parent_item['contact-id'] && $uid) { +// $r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1", +// intval($parent_item['contact-id']), +// intval($uid) +// ); +// if(count($r)) +// $parent_contact = $r[0]; +// } + } if($parent) { @@ -203,6 +204,10 @@ function item_post(&$a) { goaway($a->get_baseurl() . "/" . $return_path ); killme(); } + + if($observer) { + logger('mod_item: post accepted from ' . $observer['xchan_name'] . ' for ' . $owner_xchan['xchan_name'], LOGGER_DEBUG); + } if($orig_post) { @@ -333,8 +338,6 @@ function item_post(&$a) { $body .= "\n\n@group+" . $x[0]['abook_id'] . "\n"; } - - /** * fix naked links by passing through a callback to see if this is a red site * (already known to us) which will get a zrl, otherwise link with url |