aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-22 03:20:41 -0700
committerFriendika <info@friendika.com>2011-03-22 03:20:41 -0700
commit83a36cbd13a7c59b30164424579592a457cec7f5 (patch)
tree34e2d406ba7c7b5a4650264583559c55c3d50d2e
parentc4b292a4f103eb049c13dbe3c62f0438c18de816 (diff)
downloadvolse-hubzilla-83a36cbd13a7c59b30164424579592a457cec7f5.tar.gz
volse-hubzilla-83a36cbd13a7c59b30164424579592a457cec7f5.tar.bz2
volse-hubzilla-83a36cbd13a7c59b30164424579592a457cec7f5.zip
export posts also
-rw-r--r--mod/uexport.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/mod/uexport.php b/mod/uexport.php
index 423c3a82f..d8141534a 100644
--- a/mod/uexport.php
+++ b/mod/uexport.php
@@ -36,9 +36,19 @@ function uexport_init(&$a) {
$profile[][$k] = $v;
}
+ $item = array();
+ $r = q("SELECT * FROM `item` WHERE `uid` = %d ",
+ local_user()
+ );
+ if(count($r)) {
+ foreach($r as $rr)
+ foreach($rr as $k => $v)
+ $item[][$k] = $v;
+ }
+
- $output = array('user' => $user, 'contact' => $contact, 'profile' => $profile);
+ $output = array('user' => $user, 'contact' => $contact, 'profile' => $profile, 'item' => $item );
header("Content-type: text/json");
echo str_replace('\\/','/',json_encode($output));