diff --git a/include/discover_poco.php b/include/discover_poco.php index 3dba1f3215..5a0ca70a47 100644 --- a/include/discover_poco.php +++ b/include/discover_poco.php @@ -232,7 +232,11 @@ function discover_directory($search) { if ($data["network"] == NETWORK_DFRN) { logger("Profile ".$jj->url." is reachable (".$search.")", LOGGER_DEBUG); logger("Add profile ".$jj->url." to local directory (".$search.")", LOGGER_DEBUG); - poco_check($data["url"], $data["name"], $data["network"], $data["photo"], "", "", "", $jj->tags, $data["addr"], "", 0); + + if ($jj->tags != "") { + $data["keywords"] = $jj->tags; + } + update_gcontact($data); } else { logger("Profile ".$jj->url." is not responding or no Friendica contact - but network ".$data["network"], LOGGER_DEBUG); } diff --git a/mod/dirfind.php b/mod/dirfind.php index 1b19ad92c4..c5844d13df 100644 --- a/mod/dirfind.php +++ b/mod/dirfind.php @@ -73,9 +73,9 @@ function dirfind_content(App $a, $prefix = "") { $j->results[] = $objresult; // Add the contact to the global contacts if it isn't already in our system - if (($contact["cid"] == 0) AND ($contact["zid"] == 0) AND ($contact["gid"] == 0)) - poco_check($user_data["url"], $user_data["name"], $user_data["network"], $user_data["photo"], - "", "", "", "", "", datetime_convert(), 0); + if (($contact["cid"] == 0) AND ($contact["zid"] == 0) AND ($contact["gid"] == 0)) { + update_gcontact($user_data); + } } elseif ($local) { if ($community)