Ensure that the network is set for "self" contac ts

This commit is contained in:
Michael 2021-07-04 14:17:10 +00:00
parent 74a0bfc6da
commit 582fd613e0
2 changed files with 3 additions and 3 deletions

View file

@ -412,7 +412,7 @@ class User
// Check for correct url and normalised nurl
$url = DI::baseUrl() . '/profile/' . $owner['nickname'];
$repair = ($owner['url'] != $url) || ($owner['nurl'] != Strings::normaliseLink($owner['url']));
$repair = empty($owner['network']) || ($owner['url'] != $url) || ($owner['nurl'] != Strings::normaliseLink($owner['url']));
if (!$repair) {
// Check if "addr" is present and correct