aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-02 21:51:00 -0800
committerzotlabs <mike@macgirvin.com>2016-12-02 21:54:50 -0800
commite776e79c1e294272f13a41178190f43954b87912 (patch)
treefcd1d54a34c9176fbb48b5279fc90d9d5a08723f /include
parente2660eaad3652a23d12f44959cbce998a949c372 (diff)
downloadvolse-hubzilla-e776e79c1e294272f13a41178190f43954b87912.tar.gz
volse-hubzilla-e776e79c1e294272f13a41178190f43954b87912.tar.bz2
volse-hubzilla-e776e79c1e294272f13a41178190f43954b87912.zip
api function item/new renamed to item/store as that more closely reflects its purpose. It can also be used to store an edit of an existing item. I believe this is a reasonably safe change at this time as I don't believe there is any software currently making use of this call - instead using the Twitter API which is now a plugin.
Also some work to make the install documentation agnostic to project name variations. This is not yet complete.
Diffstat (limited to 'include')
-rw-r--r--include/api_zot.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/api_zot.php b/include/api_zot.php
index 60cb288af..8d6041408 100644
--- a/include/api_zot.php
+++ b/include/api_zot.php
@@ -28,8 +28,8 @@
api_register_func('api/z/1.0/group','api_group', true);
api_register_func('api/red/xchan','api_red_xchan',true);
api_register_func('api/z/1.0/xchan','api_red_xchan',true);
- api_register_func('api/red/item/new','red_item_new', true);
- api_register_func('api/z/1.0/item/new','red_item_new', true);
+ api_register_func('api/red/item/store','red_item_store', true);
+ api_register_func('api/z/1.0/item/store','red_item_store', true);
api_register_func('api/red/item/full','red_item', true);
api_register_func('api/z/1.0/item/full','red_item', true);
@@ -341,15 +341,15 @@
}
- function red_item_new($type) {
+ function red_item_store($type) {
if (api_user() === false) {
- logger('api_red_item_new: no user');
+ logger('api_red_item_store: no user');
return false;
}
- logger('api_red_item_new: REQUEST ' . print_r($_REQUEST,true));
- logger('api_red_item_new: FILES ' . print_r($_FILES,true));
+ logger('api_red_item_store: REQUEST ' . print_r($_REQUEST,true));
+ logger('api_red_item_store: FILES ' . print_r($_FILES,true));
// set this so that the item_post() function is quiet and doesn't redirect or emit json