Merge pull request #7042 from annando/apcontact-update

Follow up to #7036: Automatically update AP contacts
pull/7043/head
Tobias Diekershoff 4 years ago committed by GitHub
commit a17eb1e04c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Model/APContact.php

@ -89,12 +89,12 @@ class APContact extends BaseObject
$apcontact = DBA::selectFirst('apcontact', [], ['addr' => $url]);
}
if (DBA::isResult($apcontact) && ($apcontact['updated'] > $ref_update)) {
if (DBA::isResult($apcontact) && ($apcontact['updated'] > $ref_update) && !empty($apcontact['pubkey'])) {
return $apcontact;
}
if (!is_null($update)) {
return false;
return DBA::isResult($apcontact) ? $apcontact : false;
}
}

Loading…
Cancel
Save