aboutsummaryrefslogtreecommitdiffstats
path: root/include/api_zot.php
diff options
context:
space:
mode:
authornobody <nobody@zotlabs.com>2021-02-16 23:33:39 -0800
committernobody <nobody@zotlabs.com>2021-02-16 23:38:17 -0800
commit7e3046b85cec84ffdd8f482ec2e519b165fe3d54 (patch)
tree7518adae4af446e05bbb1b3db3a0c7cd11bcbfc9 /include/api_zot.php
parent281b2261aff9919e208562466e7969ccae26d9a0 (diff)
downloadvolse-hubzilla-7e3046b85cec84ffdd8f482ec2e519b165fe3d54.tar.gz
volse-hubzilla-7e3046b85cec84ffdd8f482ec2e519b165fe3d54.tar.bz2
volse-hubzilla-7e3046b85cec84ffdd8f482ec2e519b165fe3d54.zip
more work on zap channel export.
Diffstat (limited to 'include/api_zot.php')
-rw-r--r--include/api_zot.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/api_zot.php b/include/api_zot.php
index 8f621d998..0ec9202dc 100644
--- a/include/api_zot.php
+++ b/include/api_zot.php
@@ -87,12 +87,13 @@
return false;
}
$sections = (($_REQUEST['sections']) ? explode(',',$_REQUEST['sections']) : '');
+ $codebase = ((isset($_REQUEST['codebase']) && $_REQUEST['codebase'] === 'zap') ? true : false);
if($_REQUEST['posts']) {
$sections = get_default_export_sections();
$sections[] = 'items';
}
- json_return_and_die(identity_basic_export(api_user(),$sections));
+ json_return_and_die(identity_basic_export(api_user(),$sections,$codebase));
}
function api_item_export_page($type) {
@@ -111,8 +112,9 @@
$start = datetime_convert(date_default_timezone_get(),'UTC', $_REQUEST['since']);
}
$finish = datetime_convert(date_default_timezone_get(),'UTC', (($_REQUEST['until']) ? $_REQUEST['until'] : 'now'));
+ $codebase = ((isset($_REQUEST['codebase']) && $_REQUEST['codebase'] === 'zap') ? true : false);
- json_return_and_die(channel_export_items_page(api_user(),$start,$finish,$page,$records));
+ json_return_and_die(channel_export_items_page(api_user(),$start,$finish,$page,$records,$codebase));
}