aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.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/identity.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/identity.php')
-rw-r--r--include/identity.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/identity.php b/include/identity.php
index 50c5d13b9..eaeb9f07f 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -431,14 +431,15 @@ function set_default_login_identity($account_id,$channel_id,$force = true) {
}
/**
- * @function identity_basic_export($channel_id)
+ * @function identity_basic_export($channel_id,$items = false)
* Create an array representing the important channel information
* which would be necessary to create a nomadic identity clone. This includes
* most channel resources and connection information with the exception of content.
*
* @param int $channel_id
* Channel_id to export
- *
+ * @param boolean $items
+ * Include channel posts (wall items), default false
*
* @returns array
* See function for details
@@ -521,7 +522,7 @@ function identity_basic_export($channel_id, $items = false) {
return $ret;
- $r = q("select * from item_id where uid = %d",
+ $r = q("select item_id.*, item.mid from item_id left join item on item_id.iid = item.id where item_id.uid = %d",
intval($channel_id)
);