From ef360f0a5ce9b422642a395d1cbd62dac8dda973 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 19 Feb 2013 19:08:04 -0800 Subject: dang - this is almost testable. Still have to figure out the best way to deal with the profile photo. Otherwise if you're really brave you could give it a go and see what happens. The worst that could happen is that it destroys the universe. Not a big deal. More likely you could end up with a bunch of imported things that have to be cleaned up. Less likely but entirely possible is that nothing useful will happen at all and it'll white screen. --- include/identity.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/identity.php') diff --git a/include/identity.php b/include/identity.php index 9f8bc0ab0..62092443e 100644 --- a/include/identity.php +++ b/include/identity.php @@ -275,6 +275,15 @@ function identity_basic_export($channel_id) { $ret['hubloc'] = $r; } + $r = q("select type, data from photo where scale = 4 and profile = 1 and uid = %d limit 1", + intval($channel_id) + ); + + if($r) { + $ret['photo'] = array('type' => $r[0]['type'], 'data' => base64url_encode($r[0]['data'])); + } + + return $ret; } -- cgit v1.2.3