aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
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 e6140b120..9efee4178 100644
--- a/include/api.php
+++ b/include/api.php
@@ -535,7 +535,11 @@ require_once('include/security.php');
}
if($_SERVER['REQUEST_METHOD'] == 'POST') {
- json_return_and_die(post_activity_item($_POST));
+ json_return_and_die(post_activity_item($_REQUEST));
+ }
+ else {
+ // fetch stream
+
}
}
api_register_func('api/red/channel/stream','api_channel_stream', true);