limit notification detail queries for items and events

This commit is contained in:
friendica
2015-03-23 15:36:17 -07:00
parent 62b2fa6ac7
commit f2127d4ba7
4 changed files with 12 additions and 6 deletions

View File

@@ -622,10 +622,14 @@ require_once('include/items.php');
function api_red_xchan(&$a,$type) {
logger('api_xchan');
if(api_user() === false)
return false;
logger('api_xchan');
require_once('include/hubloc.php');
if($_SERVER['request_method'] === 'POST') {
if($_SERVER['REQUEST_METHOD'] === 'POST') {
$r = xchan_store($_REQUEST);
}
$r = xchan_fetch($_REQUEST);