fix some privacy leakage in logs
This commit is contained in:
25
mod/item.php
25
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
|
||||
|
||||
Reference in New Issue
Block a user