aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-19 19:08:04 -0800
committerfriendica <info@friendica.com>2013-02-19 19:08:04 -0800
commitef360f0a5ce9b422642a395d1cbd62dac8dda973 (patch)
tree23557d394f5e3ad953ae982a1cda260d22184c3f /include
parent24eac8c65614a71ac1ec0ffec8bcf877c1fa0355 (diff)
downloadvolse-hubzilla-ef360f0a5ce9b422642a395d1cbd62dac8dda973.tar.gz
volse-hubzilla-ef360f0a5ce9b422642a395d1cbd62dac8dda973.tar.bz2
volse-hubzilla-ef360f0a5ce9b422642a395d1cbd62dac8dda973.zip
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.
Diffstat (limited to 'include')
-rw-r--r--include/identity.php9
1 files changed, 9 insertions, 0 deletions
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;
}