Fix the key fields in the self contacts

This commit is contained in:
Michael 2020-09-26 20:59:28 +00:00
parent f1830b84cd
commit 9c675c3f01
2 changed files with 8 additions and 6 deletions

View file

@ -366,7 +366,7 @@ class User
if (!$repair) {
// Check if "addr" is present and correct
$addr = $owner['nickname'] . '@' . substr(DI::baseUrl(), strpos(DI::baseUrl(), '://') + 3);
$repair = ($addr != $owner['addr']);
$repair = ($addr != $owner['addr']) || empty($owner['prvkey']) || empty($owner['pubkey']);
}
if (!$repair) {