aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-25 20:21:23 -0700
committerfriendica <info@friendica.com>2014-09-25 20:21:23 -0700
commitd8c03526ed24a4b26c589659d394848c81bacc53 (patch)
tree641a43b76b895773a920ffa89ffeb0f2e4241317 /include/api.php
parente75f1ccb2ee1d5219a385ae4ee05ab74ac4600fd (diff)
downloadvolse-hubzilla-d8c03526ed24a4b26c589659d394848c81bacc53.tar.gz
volse-hubzilla-d8c03526ed24a4b26c589659d394848c81bacc53.tar.bz2
volse-hubzilla-d8c03526ed24a4b26c589659d394848c81bacc53.zip
optionally include wall items (posts) in import/export
Diffstat (limited to 'include/api.php')
-rw-r--r--include/api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/api.php b/include/api.php
index 47de945db..2505def4c 100644
--- a/include/api.php
+++ b/include/api.php
@@ -546,8 +546,8 @@ require_once('include/items.php');
}
require_once('include/identity.php');
-
- json_return_and_die(identity_basic_export(api_user()));
+
+ json_return_and_die(identity_basic_export(api_user(),(($_REQUEST['posts']) ? intval($_REQUEST['posts']) : 0 )));
}
api_register_func('api/export/basic','api_export_basic', true);
api_register_func('api/red/channel/export/basic','api_export_basic', true);