mirror of
https://github.com/friendica/friendica
synced 2024-11-19 06:23:40 +00:00
Follow up to #7036: Automatically update AP contacts
This commit is contained in:
parent
3f7b21ef28
commit
0e29ec200f
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue