Fix local avatar, improve speed for fetching cached photos

This commit is contained in:
Michael 2022-05-10 18:18:24 +00:00
parent 776ce3f63a
commit fae414fedd
5 changed files with 54 additions and 49 deletions

View file

@ -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);