Transmit the user avatar path
This commit is contained in:
parent
8cc7bad1ea
commit
24e7556f85
|
@ -48,6 +48,7 @@ use Friendica\Util\Crypto;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
use Friendica\Util\Map;
|
use Friendica\Util\Map;
|
||||||
use Friendica\Util\Network;
|
use Friendica\Util\Network;
|
||||||
|
use Friendica\Util\Proxy;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
use GuzzleHttp\Psr7\Uri;
|
use GuzzleHttp\Psr7\Uri;
|
||||||
|
@ -3886,7 +3887,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', 'photo', 'thumb', 'micro'], ['uid' => $uid]);
|
$profile = User::getOwnerDataById($uid);
|
||||||
|
|
||||||
if (!DBA::isResult($profile)) {
|
if (!DBA::isResult($profile)) {
|
||||||
return [];
|
return [];
|
||||||
|
@ -3900,9 +3901,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' => $profile['photo'],
|
'image_url' => User::getAvatarUrl($profile, Proxy::SIZE_SMALL),
|
||||||
'image_url_medium' => $profile['thumb'],
|
'image_url_medium' => User::getAvatarUrl($profile, Proxy::SIZE_THUMB),
|
||||||
'image_url_small' => $profile['micro'],
|
'image_url_small' => User::getAvatarUrl($profile, Proxy::SIZE_MICRO),
|
||||||
'bio' => null,
|
'bio' => null,
|
||||||
'birthday' => null,
|
'birthday' => null,
|
||||||
'gender' => null,
|
'gender' => null,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user