aboutsummaryrefslogtreecommitdiffstats
path: root/include/api_zot.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2017-02-01 17:08:46 -0500
committerAndrew Manning <tamanning@zoho.com>2017-02-01 17:08:46 -0500
commit61407ad6c833b67398736e04742f8e6ca0c17a2a (patch)
treec0290a76fea464e1e1bcf5aea1e3a99d82518420 /include/api_zot.php
parentd3d540a28b2dd0b4958d129cceeba162c271302b (diff)
parentec037abf92be6ac6495cabcd5d64821655f39e37 (diff)
downloadvolse-hubzilla-61407ad6c833b67398736e04742f8e6ca0c17a2a.tar.gz
volse-hubzilla-61407ad6c833b67398736e04742f8e6ca0c17a2a.tar.bz2
volse-hubzilla-61407ad6c833b67398736e04742f8e6ca0c17a2a.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev
Diffstat (limited to 'include/api_zot.php')
-rw-r--r--include/api_zot.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/api_zot.php b/include/api_zot.php
index 0b10555a6..aaa9ee497 100644
--- a/include/api_zot.php
+++ b/include/api_zot.php
@@ -69,8 +69,13 @@
logger('api_export_basic: no user');
return false;
}
-
- json_return_and_die(identity_basic_export(api_user(),(($_REQUEST['posts']) ? intval($_REQUEST['posts']) : 0 )));
+ $sections = (($_REQUEST['sections']) ? explode(',',$_REQUEST['sections']) : '');
+ if($_REQUEST['posts']) {
+ $sections = get_default_export_sections();
+ $sections[] = 'items';
+ }
+
+ json_return_and_die(identity_basic_export(api_user(),$sections));
}