mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:02:54 +00:00
Transmit the user avatar path
This commit is contained in:
parent
8cc7bad1ea
commit
24e7556f85
1 changed files with 5 additions and 4 deletions
|
@ -48,6 +48,7 @@ use Friendica\Util\Crypto;
|
|||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\Map;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Util\Proxy;
|
||||
use Friendica\Util\Strings;
|
||||
use Friendica\Util\XML;
|
||||
use GuzzleHttp\Psr7\Uri;
|
||||
|
@ -3886,7 +3887,7 @@ class Diaspora
|
|||
*/
|
||||
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)) {
|
||||
return [];
|
||||
|
@ -3900,9 +3901,9 @@ class Diaspora
|
|||
'full_name' => $profile['name'],
|
||||
'first_name' => $split_name['first'],
|
||||
'last_name' => $split_name['last'],
|
||||
'image_url' => $profile['photo'],
|
||||
'image_url_medium' => $profile['thumb'],
|
||||
'image_url_small' => $profile['micro'],
|
||||
'image_url' => User::getAvatarUrl($profile, Proxy::SIZE_SMALL),
|
||||
'image_url_medium' => User::getAvatarUrl($profile, Proxy::SIZE_THUMB),
|
||||
'image_url_small' => User::getAvatarUrl($profile, Proxy::SIZE_MICRO),
|
||||
'bio' => null,
|
||||
'birthday' => null,
|
||||
'gender' => null,
|
||||
|
|
Loading…
Reference in a new issue