mirror of
https://github.com/friendica/friendica
synced 2025-04-27 17:10:10 +00:00
Fix local avatar, improve speed for fetching cached photos
This commit is contained in:
parent
776ce3f63a
commit
fae414fedd
5 changed files with 54 additions and 49 deletions
|
@ -1700,6 +1700,10 @@ class Contact
|
|||
}
|
||||
}
|
||||
|
||||
if (Network::isLocalLink($contact['url']) && !empty($contact['avatar'])) {
|
||||
return $contact;
|
||||
}
|
||||
|
||||
/// add the default avatars if the fields aren't filled
|
||||
if (isset($contact['photo']) && empty($contact['photo'])) {
|
||||
$contact['photo'] = self::getDefaultAvatar($contact, Proxy::SIZE_SMALL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue