Fix fatal error

2022.09-rc
Michael 2020-12-29 22:14:54 +00:00
rodzic cf65725373
commit d666501ee0
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -67,6 +67,10 @@ class Account extends BaseFactory
$userContact = [];
}
if (empty($publicContact)) {
throw new HTTPException\NotFoundException('Contact ' . $contactId . ' not found');
}
$apcontact = APContact::getByURL($publicContact['url'], false);
$self_contact = Contact::selectFirst(['uid'], ['nurl' => $publicContact['nurl'], 'self' => true]);