]> git.mxchange.org Git - friendica.git/commitdiff
remove items from export - too much memory consumed, will have to stream items,photos
authorFriendika <info@friendika.com>
Tue, 22 Mar 2011 10:25:43 +0000 (03:25 -0700)
committerFriendika <info@friendika.com>
Tue, 22 Mar 2011 10:25:43 +0000 (03:25 -0700)
mod/uexport.php

index d8141534a474b87940ed9165532d5f46db5da04c..d8f9315932aacce78bc5ce4c8a72ab3ef849e329 100644 (file)
@@ -36,19 +36,7 @@ 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, 'item' => $item );
+       $output = array('user' => $user, 'contact' => $contact, 'profile' => $profile );
 
        header("Content-type: text/json");
        echo str_replace('\\/','/',json_encode($output));