Issue 13939: Fix avatars for Diaspora
This commit is contained in:
parent
2357385162
commit
8cc7bad1ea
|
@ -3886,7 +3886,7 @@ class Diaspora
|
||||||
*/
|
*/
|
||||||
private static function createProfileData(int $uid): array
|
private static function createProfileData(int $uid): array
|
||||||
{
|
{
|
||||||
$profile = DBA::selectFirst('owner-view', ['uid', 'addr', 'name', 'location', 'net-publish', 'dob', 'about', 'pub_keywords', 'updated'], ['uid' => $uid]);
|
$profile = DBA::selectFirst('owner-view', ['uid', 'addr', 'name', 'location', 'net-publish', 'dob', 'about', 'pub_keywords', 'updated', 'photo', 'thumb', 'micro'], ['uid' => $uid]);
|
||||||
|
|
||||||
if (!DBA::isResult($profile)) {
|
if (!DBA::isResult($profile)) {
|
||||||
return [];
|
return [];
|
||||||
|
@ -3900,9 +3900,9 @@ class Diaspora
|
||||||
'full_name' => $profile['name'],
|
'full_name' => $profile['name'],
|
||||||
'first_name' => $split_name['first'],
|
'first_name' => $split_name['first'],
|
||||||
'last_name' => $split_name['last'],
|
'last_name' => $split_name['last'],
|
||||||
'image_url' => DI::baseUrl() . '/photo/custom/300/' . $profile['uid'] . '.jpg',
|
'image_url' => $profile['photo'],
|
||||||
'image_url_medium' => DI::baseUrl() . '/photo/custom/100/' . $profile['uid'] . '.jpg',
|
'image_url_medium' => $profile['thumb'],
|
||||||
'image_url_small' => DI::baseUrl() . '/photo/custom/50/' . $profile['uid'] . '.jpg',
|
'image_url_small' => $profile['micro'],
|
||||||
'bio' => null,
|
'bio' => null,
|
||||||
'birthday' => null,
|
'birthday' => null,
|
||||||
'gender' => null,
|
'gender' => null,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user