Ensure that cached avatar fields are set

This commit is contained in:
Michael 2020-07-27 10:11:12 +00:00
parent 18617f6c48
commit 6ab82eaa49
2 changed files with 51 additions and 0 deletions

View file

@ -36,6 +36,7 @@ use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model;
use Friendica\Model\Contact as ModelContact;
use Friendica\Module\Security\Login;
use Friendica\Network\HTTPException\BadRequestException;
use Friendica\Network\HTTPException\NotFoundException;
@ -278,6 +279,8 @@ class Contact extends BaseModule
if ($contact['network'] == Protocol::PHANTOM) {
$contact = false;
}
$contact = ModelContact::checkAvatarCacheArray($contact);
}
if (DBA::isResult($contact)) {