aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-23 15:36:17 -0700
committerfriendica <info@friendica.com>2015-03-23 15:36:17 -0700
commitf2127d4ba717484140530e17eb8ae495cab349d7 (patch)
tree3e54141dc0b7255e72b9ce9c897248caf2b3d7ee /include/api.php
parent62b2fa6ac7ee85c8572eb868eb30dc2e20cf3040 (diff)
downloadvolse-hubzilla-f2127d4ba717484140530e17eb8ae495cab349d7.tar.gz
volse-hubzilla-f2127d4ba717484140530e17eb8ae495cab349d7.tar.bz2
volse-hubzilla-f2127d4ba717484140530e17eb8ae495cab349d7.zip
limit notification detail queries for items and events
Diffstat (limited to 'include/api.php')
-rw-r--r--include/api.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/api.php b/include/api.php
index fdc8edece..3ac8ddbda 100644
--- a/include/api.php
+++ b/include/api.php
@@ -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);