$contact = DBA::selectFirst('contact', [], ['id' => $contact_id]);
if (!DBA::isResult($contact)) {
$contact = DBA::selectFirst('contact', [], ['id' => $contact_id]);
if (!DBA::isResult($contact)) {
if (in_array($contact['network'], [Protocol::ACTIVITYPUB, Protocol::OSTATUS, Protocol::DIASPORA, Protocol::DFRN])) {
$updated = DateTimeFormat::utcNow();
// Currently we can't check every AP implementation, so we don't do it at all
if (in_array($contact['network'], [Protocol::ACTIVITYPUB, Protocol::OSTATUS, Protocol::DIASPORA, Protocol::DFRN])) {
$updated = DateTimeFormat::utcNow();
// Currently we can't check every AP implementation, so we don't do it at all
Logger::log("Skipping probably dead contact ".$contact['url']);
// set the last-update so we don't keep polling
Logger::log("Skipping probably dead contact ".$contact['url']);
// set the last-update so we don't keep polling
* @brief Updates a personal contact entry and the public contact entry
*
* @param array $contact The personal contact entry
* @brief Updates a personal contact entry and the public contact entry
*
* @param array $contact The personal contact entry