mirror of
https://github.com/friendica/friendica
synced 2025-04-21 11:50:15 +00:00
Use platform specific default avatar pictures
This commit is contained in:
parent
05a76a3dc2
commit
e0a0c57c44
6 changed files with 772 additions and 1 deletions
|
@ -270,7 +270,7 @@ class Photo extends BaseModule
|
|||
|
||||
return MPhoto::createPhotoForExternalResource($link['url'], (int)local_user(), $link['mimetype']);
|
||||
case "contact":
|
||||
$fields = ['uid', 'url', 'nurl', 'avatar', 'photo', 'xmpp', 'addr', 'network', 'failed', 'updated'];
|
||||
$fields = ['uid', 'uri-id', 'url', 'nurl', 'avatar', 'photo', 'xmpp', 'addr', 'network', 'failed', 'updated'];
|
||||
$contact = Contact::getById($id, $fields);
|
||||
if (empty($contact)) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue