aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/identity.php')
-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;
}