X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FFContact.php;h=0fc4633275284d761ecc4fc4f8d7135bc90f781b;hb=2647514603852fe5fb9f47f0bf153dd20c124ce6;hp=cf75a03dbc1df976ecc84c505d7fde2325df95ad;hpb=054c301ef0345c4ff9f35cfd08717757eab17b9d;p=friendica.git diff --git a/src/Model/FContact.php b/src/Model/FContact.php index cf75a03dbc..0fc4633275 100644 --- a/src/Model/FContact.php +++ b/src/Model/FContact.php @@ -60,7 +60,7 @@ class FContact $update = true; } - if ($person["guid"] == "") { + if (empty($person['guid']) || empty($person['uri-id'])) { $update = true; } } @@ -100,6 +100,7 @@ class FContact 'batch' => $arr["batch"], 'notify' => $arr["notify"], 'poll' => $arr["poll"], 'confirm' => $arr["confirm"], 'alias' => $arr["alias"], 'pubkey' => $arr["pubkey"], + 'uri-id' => ItemURI::insert(['uri' => $arr['url'], 'guid' => $arr['guid']]), 'updated' => DateTimeFormat::utcNow()]; $condition = ['url' => $arr["url"], 'network' => $arr["network"]];