]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/FContact.php
Detection of local requests
[friendica.git] / src / Model / FContact.php
index cf75a03dbc1df976ecc84c505d7fde2325df95ad..0fc4633275284d761ecc4fc4f8d7135bc90f781b 100644 (file)
@@ -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"]];